ar0551 commited on
Commit
9d4fcdd
·
verified ·
1 Parent(s): 1b182bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def chat_with_bot(message, history):
38
 
39
  decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
40
  response = decoded[len(prompt):].strip().split("\n")[0]
41
- history.append((message, response))
42
  return response, history
43
 
44
  # ✅ gr.ChatInterface expects fn(message, history) → (response, updated_history)
 
38
 
39
  decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
40
  response = decoded[len(prompt):].strip().split("\n")[0]
41
+ history.append([message, response])
42
  return response, history
43
 
44
  # ✅ gr.ChatInterface expects fn(message, history) → (response, updated_history)