gampala1234 commited on
Commit
3dadeb5
Β·
verified Β·
1 Parent(s): 16b2c80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,7 +15,7 @@ def chat(message, history):
15
  messages.append({"role": "assistant", "content": bot_msg})
16
  messages.append({"role": "user", "content": message})
17
 
18
- # Prepare input for the model (adapt this based on Qwen's expected input format)
19
  inputs = tokenizer(message, return_tensors="pt")
20
 
21
  outputs = model.generate(
@@ -35,8 +35,8 @@ demo = gr.ChatInterface(
35
  fn=chat,
36
  title="Maya AI (Lite)",
37
  theme="soft",
38
- # Explicitly set the chatbot to use the new messages format
39
- chatbot=gr.Chatbot(height=500, likeable=True, layout="panel", type="messages")
40
  )
41
 
42
  demo.launch()
 
15
  messages.append({"role": "assistant", "content": bot_msg})
16
  messages.append({"role": "user", "content": message})
17
 
18
+ # Prepare input for the model
19
  inputs = tokenizer(message, return_tensors="pt")
20
 
21
  outputs = model.generate(
 
35
  fn=chat,
36
  title="Maya AI (Lite)",
37
  theme="soft",
38
+ # Updated Chatbot configuration without the invalid 'likeable' parameter
39
+ chatbot=gr.Chatbot(height=500, layout="panel", type="messages")
40
  )
41
 
42
  demo.launch()