Aniquel commited on
Commit
f81f0bf
1 Parent(s): ffcf1f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
+