Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +0 -5
Gradio_UI.py
CHANGED
|
@@ -35,10 +35,6 @@ def pull_messages_from_step(step_log: MemoryStep):
|
|
| 35 |
else:
|
| 36 |
content = str(args).strip()
|
| 37 |
|
| 38 |
-
# Special handling for code/Python
|
| 39 |
-
if tool_call.name == "python_interpreter" and not content.startswith("```"):
|
| 40 |
-
content = f"```python\n{content}\n```"
|
| 41 |
-
|
| 42 |
yield gr.ChatMessage(
|
| 43 |
role="assistant",
|
| 44 |
content=content,
|
|
@@ -106,7 +102,6 @@ def stream_to_gradio(
|
|
| 106 |
final = handle_agent_output_types(step_log)
|
| 107 |
if isinstance(final, AgentText):
|
| 108 |
content = final.to_string()
|
| 109 |
-
# Format catalogue nicely with Markdown rendering
|
| 110 |
yield gr.ChatMessage(
|
| 111 |
role="assistant",
|
| 112 |
content=content,
|
|
|
|
| 35 |
else:
|
| 36 |
content = str(args).strip()
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
yield gr.ChatMessage(
|
| 39 |
role="assistant",
|
| 40 |
content=content,
|
|
|
|
| 102 |
final = handle_agent_output_types(step_log)
|
| 103 |
if isinstance(final, AgentText):
|
| 104 |
content = final.to_string()
|
|
|
|
| 105 |
yield gr.ChatMessage(
|
| 106 |
role="assistant",
|
| 107 |
content=content,
|