💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows
Python agentsaiai-agentsembeddingsinformation-retrievallanguage-modellarge-language-modelsllmnlppythonragretrieval-augmented-generationsearchsearch-enginesemantic-searchsentence-embeddingstransformerstxtaivector-databasevector-search
Update workflow example app to accept urls
davidmezzettief6ca7d45743
diff --git a/examples/workflows.py b/examples/workflows.pyindex f60b5436..be7af938 100644--- a/examples/workflows.py+++ b/examples/workflows.py@@ -12,7 +12,7 @@ import streamlit as stfrom txtai.embeddings import Documents, Embeddingsfrom txtai.pipeline import Segmentation, Summary, Textractor, Transcription, Translation-from txtai.workflow import Workflow, FileTask, Task+from txtai.workflow import Workflow, Task, UrlTaskclass Application:@@ -126,11 +126,11 @@ class Application:elif wtype == "textract":self.pipelines[wtype] = Textractor(**self.components["textract"])- tasks.append(FileTask(self.pipelines["textract"]))+ tasks.append(UrlTask(self.pipelines["textract"]))elif wtype == "transcribe":self.pipelines[wtype] = Transcription(component.pop("path"))- tasks.append(FileTask(self.pipelines["transcribe"], r".\.wav$"))+ tasks.append(UrlTask(self.pipelines["transcribe"], r".\.wav$"))elif wtype == "translate":self.pipelines[wtype] = Translation()