Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ model = LiteLLMModel(
|
|
80 |
|
81 |
'''
|
82 |
# Import tool from Hub
|
83 |
-
image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
84 |
|
85 |
# Load prompts.yaml
|
86 |
with open("prompts.yaml", 'r') as stream:
|
@@ -94,7 +94,7 @@ combined_prompts = {**prompt_templates, **content_prompts}
|
|
94 |
|
95 |
|
96 |
# web_search, visit_webpage
|
97 |
-
|
98 |
agent = CodeAgent(
|
99 |
model=model,
|
100 |
tools=[final_answer, polite_guard, web_search, get_the_current_time_in_timezone ], ## add your tools here (don't remove final answer)
|
@@ -110,4 +110,6 @@ agent = CodeAgent(
|
|
110 |
)
|
111 |
|
112 |
|
113 |
-
GradioUI(agent).launch()
|
|
|
|
|
|
80 |
|
81 |
'''
|
82 |
# Import tool from Hub
|
83 |
+
#image_generation_tool = load_tool("agents-course/text-to-image", trust_remote_code=True)
|
84 |
|
85 |
# Load prompts.yaml
|
86 |
with open("prompts.yaml", 'r') as stream:
|
|
|
94 |
|
95 |
|
96 |
# web_search, visit_webpage
|
97 |
+
'''
|
98 |
agent = CodeAgent(
|
99 |
model=model,
|
100 |
tools=[final_answer, polite_guard, web_search, get_the_current_time_in_timezone ], ## add your tools here (don't remove final answer)
|
|
|
110 |
)
|
111 |
|
112 |
|
113 |
+
GradioUI(agent).launch()
|
114 |
+
|
115 |
+
'''
|