Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 35 |
|
| 36 |
|
| 37 |
final_answer = FinalAnswerTool()
|
|
|
|
| 38 |
model = HfApiModel(
|
| 39 |
#max_tokens=2096,
|
| 40 |
max_tokens=2046,
|
|
@@ -48,8 +49,6 @@ custom_role_conversions=None,
|
|
| 48 |
# Import tool from Hub
|
| 49 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 50 |
|
| 51 |
-
get_current_time_in_timezone = get_current_time_in_timezone()
|
| 52 |
-
|
| 53 |
with open("prompts.yaml", 'r') as stream:
|
| 54 |
prompt_templates = yaml.safe_load(stream)
|
| 55 |
|
|
|
|
| 35 |
|
| 36 |
|
| 37 |
final_answer = FinalAnswerTool()
|
| 38 |
+
get_current_time_in_timezone = get_current_time_in_timezone()
|
| 39 |
model = HfApiModel(
|
| 40 |
#max_tokens=2096,
|
| 41 |
max_tokens=2046,
|
|
|
|
| 49 |
# Import tool from Hub
|
| 50 |
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
| 51 |
|
|
|
|
|
|
|
| 52 |
with open("prompts.yaml", 'r') as stream:
|
| 53 |
prompt_templates = yaml.safe_load(stream)
|
| 54 |
|