Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ class ChatbotManager:
|
|
63 |
# Add conversation history
|
64 |
for user_msg, assistant_msg in history:
|
65 |
messages.append({"role": "user", "content": user_msg})
|
66 |
-
messages.append({"role": "assistant", "content": assistant_msg})
|
67 |
|
68 |
# Add current user input
|
69 |
messages.append({"role": "user", "content": user_input})
|
@@ -156,7 +156,8 @@ def create_interface():
|
|
156 |
user_input = gr.Textbox(
|
157 |
placeholder="Type your message here...",
|
158 |
scale=4,
|
159 |
-
show_label=False
|
|
|
160 |
)
|
161 |
send_btn = gr.Button("Send", variant="primary", scale=1)
|
162 |
|
|
|
63 |
# Add conversation history
|
64 |
for user_msg, assistant_msg in history:
|
65 |
messages.append({"role": "user", "content": user_msg})
|
66 |
+
messages.append({"role": "assistant", "content": "🤖 " + assistant_msg})
|
67 |
|
68 |
# Add current user input
|
69 |
messages.append({"role": "user", "content": user_input})
|
|
|
156 |
user_input = gr.Textbox(
|
157 |
placeholder="Type your message here...",
|
158 |
scale=4,
|
159 |
+
show_label=False,
|
160 |
+
show_copy_button=True
|
161 |
)
|
162 |
send_btn = gr.Button("Send", variant="primary", scale=1)
|
163 |
|