Spaces:
Runtime error
Runtime error
Leonardo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -198,11 +198,5 @@ def create_agent(model_id="openrouter/google/gemini-2.0-flash-001"):
|
|
| 198 |
|
| 199 |
|
| 200 |
if __name__ == "__main__":
|
| 201 |
-
# Create an agent instance
|
| 202 |
agent_instance = create_agent()
|
| 203 |
-
|
| 204 |
-
# Create Gradio UI with the agent instance and file upload folder
|
| 205 |
-
demo = GradioUI(agent_instance, file_upload_folder="uploaded_files")
|
| 206 |
-
|
| 207 |
-
# Launch the UI
|
| 208 |
-
demo.launch()
|
|
|
|
| 198 |
|
| 199 |
|
| 200 |
if __name__ == "__main__":
|
|
|
|
| 201 |
agent_instance = create_agent()
|
| 202 |
+
GradioUI(agent_instance).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|