Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,6 @@ def chatbot_response(text_input, voice_input):
|
|
44 |
response_audio = Audio(audio_bytes, autoplay=True)
|
45 |
|
46 |
# Update chat history with input and response text
|
47 |
-
global chat_history
|
48 |
chat_history += f"\n\nUser: {text_input}\nChatbot: {response_text}"
|
49 |
|
50 |
# Save chat history to file
|
@@ -65,3 +64,5 @@ chatbot_interface = gr.Interface(
|
|
65 |
|
66 |
# Launch chatbot interface
|
67 |
chatbot_interface.launch()
|
|
|
|
|
|
44 |
response_audio = Audio(audio_bytes, autoplay=True)
|
45 |
|
46 |
# Update chat history with input and response text
|
|
|
47 |
chat_history += f"\n\nUser: {text_input}\nChatbot: {response_text}"
|
48 |
|
49 |
# Save chat history to file
|
|
|
64 |
|
65 |
# Launch chatbot interface
|
66 |
chatbot_interface.launch()
|
67 |
+
|
68 |
+
|