Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +2 -0
Gradio_UI.py
CHANGED
|
@@ -149,6 +149,8 @@ def launch_step_by_step_ui():
|
|
| 149 |
if isinstance(reply, str):
|
| 150 |
messages.append(gr.ChatMessage(role="assistant", content=reply))
|
| 151 |
|
|
|
|
|
|
|
| 152 |
return messages, updated_state, file_path
|
| 153 |
|
| 154 |
def restart_conversation():
|
|
|
|
| 149 |
if isinstance(reply, str):
|
| 150 |
messages.append(gr.ChatMessage(role="assistant", content=reply))
|
| 151 |
|
| 152 |
+
if not file_path:
|
| 153 |
+
file_path = None
|
| 154 |
return messages, updated_state, file_path
|
| 155 |
|
| 156 |
def restart_conversation():
|