Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,8 @@ import pytz
|
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
|
8 |
-
from Gradio_UI import GradioUI
|
|
|
9 |
|
10 |
@tool
|
11 |
def execute_python_code(code: str) -> str:
|
@@ -131,4 +132,5 @@ agent = CodeAgent(
|
|
131 |
prompt_templates=prompt_templates
|
132 |
)
|
133 |
|
134 |
-
GradioUI(agent).launch()
|
|
|
|
5 |
import yaml
|
6 |
from tools.final_answer import FinalAnswerTool
|
7 |
|
8 |
+
#from Gradio_UI import GradioUI
|
9 |
+
import gradio as gr
|
10 |
|
11 |
@tool
|
12 |
def execute_python_code(code: str) -> str:
|
|
|
132 |
prompt_templates=prompt_templates
|
133 |
)
|
134 |
|
135 |
+
#GradioUI(agent).launch()
|
136 |
+
gr(agent).launch()
|