TuanScientist commited on
Commit
5fc4d5a
·
1 Parent(s): 29b56a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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(f": {ai_response}")
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
+