Spaces:
Runtime error
Runtime error
Commit
·
5fc4d5a
1
Parent(s):
29b56a4
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def chatbot(input):
|
|
33 |
|
34 |
# Add AI response to conversation history
|
35 |
ai_response = response.choices[0].text.strip()
|
36 |
-
conversation_history.append(
|
37 |
|
38 |
return ai_response
|
39 |
|
@@ -53,3 +53,4 @@ interface = gr.Interface(
|
|
53 |
|
54 |
# Launch the interface
|
55 |
interface.launch()
|
|
|
|
33 |
|
34 |
# Add AI response to conversation history
|
35 |
ai_response = response.choices[0].text.strip()
|
36 |
+
conversation_history.append(ai_response) # Remove the ": " prefix
|
37 |
|
38 |
return ai_response
|
39 |
|
|
|
53 |
|
54 |
# Launch the interface
|
55 |
interface.launch()
|
56 |
+
|