Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def text_to_speech(text):
|
|
28 |
display(Audio(mp3, autoplay=True))
|
29 |
|
30 |
# Define function to get chatbot response
|
31 |
-
def chat(
|
32 |
# Append user input to chat history
|
33 |
chat_history.append(f"User: {text}")
|
34 |
|
|
|
28 |
display(Audio(mp3, autoplay=True))
|
29 |
|
30 |
# Define function to get chatbot response
|
31 |
+
async def chat(input_text, state):
|
32 |
# Append user input to chat history
|
33 |
chat_history.append(f"User: {text}")
|
34 |
|