Spaces:
Sleeping
Sleeping
Update OpenRouter_Agent.py
Browse files- OpenRouter_Agent.py +6 -6
OpenRouter_Agent.py
CHANGED
|
@@ -20,12 +20,12 @@ from smolagents.utils import encode_image_base64, make_image_url
|
|
| 20 |
import os
|
| 21 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
| 22 |
|
| 23 |
-
audio_transcribe_tool = Tool.from_space(
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
|
| 28 |
-
)
|
| 29 |
|
| 30 |
object_detection_tool = Tool.from_space(
|
| 31 |
space_id = "stevengrove/YOLO-World",
|
|
@@ -90,7 +90,7 @@ class MultiAgentSystem:
|
|
| 90 |
|
| 91 |
self.info_agent = CodeAgent(
|
| 92 |
model =self.qwen_model,
|
| 93 |
-
tools=[PythonInterpreterTool(),
|
| 94 |
name="info_agent",
|
| 95 |
description=(
|
| 96 |
"You are an agent tasked with cleaning, parsing, calculating information, and performing OCR if images are provided in the {task}. "
|
|
|
|
| 20 |
import os
|
| 21 |
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
|
| 22 |
|
| 23 |
+
#audio_transcribe_tool = Tool.from_space(
|
| 24 |
+
# space_id = "hf-audio/whisper-large-v3",
|
| 25 |
+
# name = "audio_to_text",
|
| 26 |
+
# description = "Transcribe long-form YouTube videos or audio inputs. Paste the URL to a YouTube video or upload audio file to get the transcript.",
|
| 27 |
|
| 28 |
+
#)
|
| 29 |
|
| 30 |
object_detection_tool = Tool.from_space(
|
| 31 |
space_id = "stevengrove/YOLO-World",
|
|
|
|
| 90 |
|
| 91 |
self.info_agent = CodeAgent(
|
| 92 |
model =self.qwen_model,
|
| 93 |
+
tools=[PythonInterpreterTool(), object_detection_tool ],
|
| 94 |
name="info_agent",
|
| 95 |
description=(
|
| 96 |
"You are an agent tasked with cleaning, parsing, calculating information, and performing OCR if images are provided in the {task}. "
|