Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def silero_voice_generator(sentence):
|
|
| 63 |
|
| 64 |
|
| 65 |
@tool
|
| 66 |
-
def text_to_voice(sentence: str) ->
|
| 67 |
"""
|
| 68 |
A tool that converts a sentence into a voice audio file and returns its binary content.
|
| 69 |
|
|
@@ -115,7 +115,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 115 |
|
| 116 |
agent = CodeAgent(
|
| 117 |
model=model,
|
| 118 |
-
tools=[final_answer, image_generation_tool, get_current_time_in_timezone, get_news
|
| 119 |
max_steps=6,
|
| 120 |
verbosity_level=1,
|
| 121 |
grammar=None,
|
|
|
|
| 63 |
|
| 64 |
|
| 65 |
@tool
|
| 66 |
+
def text_to_voice(sentence: str) -> bytes:
|
| 67 |
"""
|
| 68 |
A tool that converts a sentence into a voice audio file and returns its binary content.
|
| 69 |
|
|
|
|
| 115 |
|
| 116 |
agent = CodeAgent(
|
| 117 |
model=model,
|
| 118 |
+
tools=[final_answer, image_generation_tool, get_current_time_in_timezone, get_news], ## add your tools here (don't remove final answer)
|
| 119 |
max_steps=6,
|
| 120 |
verbosity_level=1,
|
| 121 |
grammar=None,
|