Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,9 +34,9 @@ def chat_cpu(user_input, chat_history=None):
|
|
| 34 |
# Define a Gradio interface
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=chat_cpu,
|
| 37 |
-
inputs=["text", gr.Textbox(placeholder="
|
| 38 |
-
outputs=[gr.Textbox(placeholder="Chat history will appear here", lines=15,
|
| 39 |
-
gr.Textbox(placeholder="Chat history will appear here", lines=15,
|
| 40 |
live=True,
|
| 41 |
layout="vertical",
|
| 42 |
theme="compact",
|
|
|
|
| 34 |
# Define a Gradio interface
|
| 35 |
iface = gr.Interface(
|
| 36 |
fn=chat_cpu,
|
| 37 |
+
inputs=["text", gr.Textbox(placeholder="Chat history will appear here", lines=10)],
|
| 38 |
+
outputs=[gr.Textbox(placeholder="Chat history will appear here", lines=15, label="BOT", element_id="bot_history"),
|
| 39 |
+
gr.Textbox(placeholder="Chat history will appear here", lines=15, label="USER", element_id="user_history")],
|
| 40 |
live=True,
|
| 41 |
layout="vertical",
|
| 42 |
theme="compact",
|