themissingCRAM
commited on
Commit
·
d23e6f9
1
Parent(s):
9d155c8
gradio blocks
Browse files
app.py
CHANGED
|
@@ -128,14 +128,13 @@ if __name__ == "__main__":
|
|
| 128 |
agent = CodeAgent(
|
| 129 |
tools=[sql_engine_tool],
|
| 130 |
model=model,
|
| 131 |
-
max_steps=
|
| 132 |
verbosity_level=1,
|
| 133 |
)
|
| 134 |
# GradioUI(agent).launch()
|
| 135 |
|
| 136 |
def enter_message(new_message, conversation_history):
|
| 137 |
|
| 138 |
-
conversation_history = []
|
| 139 |
conversation_history.append(gr.ChatMessage(role="user", content=new_message))
|
| 140 |
yield "", conversation_history
|
| 141 |
for msg in stream_to_gradio(agent, new_message):
|
|
|
|
| 128 |
agent = CodeAgent(
|
| 129 |
tools=[sql_engine_tool],
|
| 130 |
model=model,
|
| 131 |
+
max_steps=10,
|
| 132 |
verbosity_level=1,
|
| 133 |
)
|
| 134 |
# GradioUI(agent).launch()
|
| 135 |
|
| 136 |
def enter_message(new_message, conversation_history):
|
| 137 |
|
|
|
|
| 138 |
conversation_history.append(gr.ChatMessage(role="user", content=new_message))
|
| 139 |
yield "", conversation_history
|
| 140 |
for msg in stream_to_gradio(agent, new_message):
|