Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -204,19 +204,15 @@ def chat_respond(message: str, history):
|
|
| 204 |
# GRADIO UI
|
| 205 |
# -----------------------------
|
| 206 |
|
| 207 |
-
description = """
|
| 208 |
-
Ask questions as if you were talking to a knowledge base assistant.
|
| 209 |
-
|
| 210 |
-
In a real scenario, this assistant would be connected to your own
|
| 211 |
-
help center or internal documentation. Here, it's using a small demo
|
| 212 |
-
knowledge base to show how retrieval-based self-service can work.
|
| 213 |
-
"""
|
| 214 |
-
|
| 215 |
chat = gr.ChatInterface(
|
| 216 |
fn=chat_respond,
|
| 217 |
title="Self-Service KB Assistant",
|
| 218 |
description=description,
|
| 219 |
-
chatbot=gr.Chatbot(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 220 |
examples=[
|
| 221 |
"What makes a good knowledge base article?",
|
| 222 |
"How could a KB assistant help agents?",
|
|
|
|
| 204 |
# GRADIO UI
|
| 205 |
# -----------------------------
|
| 206 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 207 |
chat = gr.ChatInterface(
|
| 208 |
fn=chat_respond,
|
| 209 |
title="Self-Service KB Assistant",
|
| 210 |
description=description,
|
| 211 |
+
chatbot=gr.Chatbot(
|
| 212 |
+
height=420,
|
| 213 |
+
show_copy_button=True,
|
| 214 |
+
type="messages"
|
| 215 |
+
),
|
| 216 |
examples=[
|
| 217 |
"What makes a good knowledge base article?",
|
| 218 |
"How could a KB assistant help agents?",
|