Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -195,8 +195,8 @@ def rag_query_with_citations(question, repo_id, history=[], uploaded_files=[]):
|
|
| 195 |
# ========================================
|
| 196 |
# GRADIO INTERFACE - ENHANCED
|
| 197 |
# ========================================
|
| 198 |
-
with gr.Blocks(title="
|
| 199 |
-
gr.Markdown("# 📚
|
| 200 |
|
| 201 |
# File storage state
|
| 202 |
uploaded_files = gr.State({})
|
|
@@ -208,8 +208,9 @@ with gr.Blocks(title="RAG QA with Citations", theme=gr.themes.Soft()) as demo:
|
|
| 208 |
|
| 209 |
repo_id_input = gr.Textbox(
|
| 210 |
label="HF Dataset Repo",
|
| 211 |
-
placeholder="
|
| 212 |
-
value="
|
|
|
|
| 213 |
)
|
| 214 |
|
| 215 |
pdf_upload = gr.File(
|
|
@@ -250,7 +251,8 @@ with gr.Blocks(title="RAG QA with Citations", theme=gr.themes.Soft()) as demo:
|
|
| 250 |
)
|
| 251 |
repo_id_chat = gr.Textbox(
|
| 252 |
label="Repo ID",
|
| 253 |
-
value="
|
|
|
|
| 254 |
)
|
| 255 |
|
| 256 |
submit_btn = gr.Button("💬 Answer with Citations", variant="primary")
|
|
|
|
| 195 |
# ========================================
|
| 196 |
# GRADIO INTERFACE - ENHANCED
|
| 197 |
# ========================================
|
| 198 |
+
with gr.Blocks(title="NRL Chat for Commercial procurement", theme=gr.themes.Soft()) as demo:
|
| 199 |
+
gr.Markdown("# 📚 Ask question and get answer from NRL documents")
|
| 200 |
|
| 201 |
# File storage state
|
| 202 |
uploaded_files = gr.State({})
|
|
|
|
| 208 |
|
| 209 |
repo_id_input = gr.Textbox(
|
| 210 |
label="HF Dataset Repo",
|
| 211 |
+
placeholder="manabb/withPDFlink",
|
| 212 |
+
value="manabb/withPDFlink",
|
| 213 |
+
interactive=False
|
| 214 |
)
|
| 215 |
|
| 216 |
pdf_upload = gr.File(
|
|
|
|
| 251 |
)
|
| 252 |
repo_id_chat = gr.Textbox(
|
| 253 |
label="Repo ID",
|
| 254 |
+
value="manabb/withPDFlink",
|
| 255 |
+
interactive=False
|
| 256 |
)
|
| 257 |
|
| 258 |
submit_btn = gr.Button("💬 Answer with Citations", variant="primary")
|