Update app.py
Browse files
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 |
-
#
|
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
|