Dave67350 commited on
Commit
6f5243c
·
verified ·
1 Parent(s): dc3da40

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. 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():