Spaces:
Sleeping
Sleeping
Commit
·
6c10370
1
Parent(s):
8558835
Polish Sidebar: Remove tabs, stack upload/sample controls
Browse files- apps/web/app.py +12 -12
apps/web/app.py
CHANGED
|
@@ -150,18 +150,18 @@ with gr.Blocks(title="RAG Knowledge Assistant", theme=gr.themes.Soft()) as demo:
|
|
| 150 |
gr.Markdown("### 1. Teach Me 🍎")
|
| 151 |
gr.Markdown("Upload docs to build your brain.")
|
| 152 |
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
|
| 166 |
ingest_btn = gr.Button("🚀 Ingest", variant="primary")
|
| 167 |
status_box = gr.Textbox(label="Status", value="Ready.", interactive=False, lines=4, max_lines=4)
|
|
|
|
| 150 |
gr.Markdown("### 1. Teach Me 🍎")
|
| 151 |
gr.Markdown("Upload docs to build your brain.")
|
| 152 |
|
| 153 |
+
file_upload = gr.File(
|
| 154 |
+
label="Upload Files (PDF/TXT)",
|
| 155 |
+
file_count="multiple",
|
| 156 |
+
file_types=[".pdf", ".txt", ".html"]
|
| 157 |
+
)
|
| 158 |
+
|
| 159 |
+
gr.Markdown("**OR**", props={"style": "text-align: center; margin: 10px 0; color: #888;"})
|
| 160 |
+
|
| 161 |
+
use_sample_chk = gr.Checkbox(
|
| 162 |
+
label="Load 'Sports Legends' (Demo)",
|
| 163 |
+
info="Use built-in data about Messi, Brady, etc."
|
| 164 |
+
)
|
| 165 |
|
| 166 |
ingest_btn = gr.Button("🚀 Ingest", variant="primary")
|
| 167 |
status_box = gr.Textbox(label="Status", value="Ready.", interactive=False, lines=4, max_lines=4)
|