Helw150 commited on
Commit
52385ae
1 Parent(s): cb5e29e

Slightly Cleaner Was A Lie

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -173,7 +173,7 @@ with gr.Blocks(theme=theme, js=js) as demo:
173
  response, [state, input_audio], [state, chatbot]
174
  )
175
  restart = respond.then(start_recording_user, [state], [input_audio]).then(
176
- lambda: pass, None, None, js=js_reset
177
  )
178
 
179
  cancel = gr.Button("Restart Conversation", variant="stop")
 
173
  response, [state, input_audio], [state, chatbot]
174
  )
175
  restart = respond.then(start_recording_user, [state], [input_audio]).then(
176
+ lambda state: state, state, state, js=js_reset
177
  )
178
 
179
  cancel = gr.Button("Restart Conversation", variant="stop")