Spaces:
Sleeping
Sleeping
app.py creación de imágenes
Browse files
app.py
CHANGED
|
@@ -46,11 +46,7 @@ def conversor_unidades(arg1:str, arg2: int, arg3:str)-> str:
|
|
| 46 |
return "Conversión no soportada entre esas unidades."
|
| 47 |
except Exception as e:
|
| 48 |
return f"Error en la conversión: {e}"
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
|
| 55 |
@tool
|
| 56 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
@@ -89,7 +85,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 89 |
|
| 90 |
agent = CodeAgent(
|
| 91 |
model=model,
|
| 92 |
-
tools=[conversor_unidades, final_answer], ## add your tools here (don't remove final answer)
|
| 93 |
max_steps=6,
|
| 94 |
verbosity_level=1,
|
| 95 |
grammar=None,
|
|
|
|
| 46 |
return "Conversión no soportada entre esas unidades."
|
| 47 |
except Exception as e:
|
| 48 |
return f"Error en la conversión: {e}"
|
| 49 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
@tool
|
| 52 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 85 |
|
| 86 |
agent = CodeAgent(
|
| 87 |
model=model,
|
| 88 |
+
tools=[conversor_unidades, final_answer, image_generation_tool], ## add your tools here (don't remove final answer)
|
| 89 |
max_steps=6,
|
| 90 |
verbosity_level=1,
|
| 91 |
grammar=None,
|