Spaces:
Sleeping
Sleeping
Commit
·
8367f0a
1
Parent(s):
c3e0a07
Polish UI Text: Update Sample label, clarify Mistral model, and improve examples
Browse files- apps/web/app.py +5 -4
apps/web/app.py
CHANGED
|
@@ -167,7 +167,7 @@ with gr.Blocks(title="RAG Knowledge Assistant", theme=gr.themes.Soft()) as demo:
|
|
| 167 |
gr.HTML("<div style='text-align: center; color: #666; font-size: 11px; margin: 2px 0;'>— OR —</div>")
|
| 168 |
|
| 169 |
use_sample_chk = gr.Checkbox(
|
| 170 |
-
label="Use Sample Dataset",
|
| 171 |
container=False
|
| 172 |
)
|
| 173 |
|
|
@@ -197,7 +197,7 @@ with gr.Blocks(title="RAG Knowledge Assistant", theme=gr.themes.Soft()) as demo:
|
|
| 197 |
label="LLM Backend",
|
| 198 |
container=False
|
| 199 |
)
|
| 200 |
-
gr.HTML("<div style='font-size: 9px; color: #888; margin-top: 2px;'>*Local
|
| 201 |
|
| 202 |
# Right Column: Main App (Chat)
|
| 203 |
with gr.Column(scale=4):
|
|
@@ -205,10 +205,11 @@ with gr.Blocks(title="RAG Knowledge Assistant", theme=gr.themes.Soft()) as demo:
|
|
| 205 |
fn=chat_fn,
|
| 206 |
additional_inputs=[backend_radio],
|
| 207 |
title="Chat Interface",
|
| 208 |
-
description="Ask questions about your uploaded documents.",
|
| 209 |
examples=[
|
| 210 |
["Who is the greatest quarterback?", "openai"],
|
| 211 |
-
["
|
|
|
|
| 212 |
]
|
| 213 |
)
|
| 214 |
|
|
|
|
| 167 |
gr.HTML("<div style='text-align: center; color: #666; font-size: 11px; margin: 2px 0;'>— OR —</div>")
|
| 168 |
|
| 169 |
use_sample_chk = gr.Checkbox(
|
| 170 |
+
label="Use Sports Legends Sample Dataset",
|
| 171 |
container=False
|
| 172 |
)
|
| 173 |
|
|
|
|
| 197 |
label="LLM Backend",
|
| 198 |
container=False
|
| 199 |
)
|
| 200 |
+
gr.HTML("<div style='font-size: 9px; color: #888; margin-top: 2px;'>*Local = Mistral-7B (ZeroGPU)</div>")
|
| 201 |
|
| 202 |
# Right Column: Main App (Chat)
|
| 203 |
with gr.Column(scale=4):
|
|
|
|
| 205 |
fn=chat_fn,
|
| 206 |
additional_inputs=[backend_radio],
|
| 207 |
title="Chat Interface",
|
| 208 |
+
description="Ask questions about your uploaded documents or the sample dataset.",
|
| 209 |
examples=[
|
| 210 |
["Who is the greatest quarterback?", "openai"],
|
| 211 |
+
["Summarize the uploaded documents", "local"],
|
| 212 |
+
["What makes Lionel Messi a legend?", "gemini"]
|
| 213 |
]
|
| 214 |
)
|
| 215 |
|