Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ from Gradio_UI import GradioUI
|
|
| 50 |
@tool
|
| 51 |
|
| 52 |
def get_movie_recommendation(mood: str, location: str, user_preferences: dict) -> dict:
|
| 53 |
-
|
| 54 |
Recommend a movie based on the user's mood, current weather at the given location,
|
| 55 |
and personal preferences.
|
| 56 |
|
|
@@ -155,7 +155,7 @@ with open("prompts.yaml", 'r') as stream:
|
|
| 155 |
|
| 156 |
agent = CodeAgent(
|
| 157 |
model=model,
|
| 158 |
-
tools=[final_answer, get_current_time_in_timezone, image_generation_tool,get_movie_recommendation
|
| 159 |
max_steps=6,
|
| 160 |
verbosity_level=1,
|
| 161 |
grammar=None,
|
|
|
|
| 50 |
@tool
|
| 51 |
|
| 52 |
def get_movie_recommendation(mood: str, location: str, user_preferences: dict) -> dict:
|
| 53 |
+
"""
|
| 54 |
Recommend a movie based on the user's mood, current weather at the given location,
|
| 55 |
and personal preferences.
|
| 56 |
|
|
|
|
| 155 |
|
| 156 |
agent = CodeAgent(
|
| 157 |
model=model,
|
| 158 |
+
tools=[final_answer, get_current_time_in_timezone, image_generation_tool,get_movie_recommendation], ## add your tools here (don't remove final answer)
|
| 159 |
max_steps=6,
|
| 160 |
verbosity_level=1,
|
| 161 |
grammar=None,
|