Dave67350 commited on
Commit
e3f170d
·
verified ·
1 Parent(s): 613153e

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. 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
- restart_button.visible = True
137
 
138
- return messages, updated_state, file_path
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