Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 |
-
#
|
| 39 |
-
chatbot=gr.Chatbot(height=500,
|
| 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()
|