candenizkocak commited on
Commit
9dbf8e1
·
verified ·
1 Parent(s): c67b8dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def process_input(audio_file, text_input, chat_history):
52
  # Format chat history for display
53
  formatted_history = "\n".join([f"{role}: {content}\n" for role, content in chat_history])
54
 
55
- # Return chat history and instructions to clear inputs
56
  return formatted_history, gr.update(value=None), gr.update(value=''), chat_history
57
 
58
  # Create Gradio interface
 
52
  # Format chat history for display
53
  formatted_history = "\n".join([f"{role}: {content}\n" for role, content in chat_history])
54
 
55
+ # Reset the inputs after processing
56
  return formatted_history, gr.update(value=None), gr.update(value=''), chat_history
57
 
58
  # Create Gradio interface