Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +2 -2
Gradio_UI.py
CHANGED
|
@@ -133,9 +133,9 @@ def launch_step_by_step_ui():
|
|
| 133 |
file_path = None
|
| 134 |
if isinstance(updated_state, dict) and updated_state.get("done"):
|
| 135 |
file_path = updated_state["pdf"]
|
| 136 |
-
|
| 137 |
|
| 138 |
-
return messages, updated_state,
|
| 139 |
|
| 140 |
def restart_conversation():
|
| 141 |
return [initial_message], {"step": 0, "answers": {}}, None
|
|
|
|
| 133 |
file_path = None
|
| 134 |
if isinstance(updated_state, dict) and updated_state.get("done"):
|
| 135 |
file_path = updated_state["pdf"]
|
| 136 |
+
return messages, updated_state, file_path
|
| 137 |
|
| 138 |
+
return messages, updated_state, None
|
| 139 |
|
| 140 |
def restart_conversation():
|
| 141 |
return [initial_message], {"step": 0, "answers": {}}, None
|