Spaces:
Sleeping
Sleeping
Update app.py
Browse filesUpdating comments.
app.py
CHANGED
@@ -77,7 +77,9 @@ def generate_response(question: str) -> list[str, str, str]:
|
|
77 |
with gr.Blocks() as demo:
|
78 |
gr.Markdown("""
|
79 |
# Retrieval (ColBERT) + Generation (DSPy & Mistral)
|
80 |
-
- Note:
|
|
|
|
|
81 |
- Usage: upload a few PDF files to index. Build the model. Ask questions.
|
82 |
""")
|
83 |
|
@@ -95,7 +97,7 @@ with gr.Blocks() as demo:
|
|
95 |
# Question to answer
|
96 |
question = gr.Textbox(
|
97 |
label="Question",
|
98 |
-
placeholder="
|
99 |
)
|
100 |
response = gr.Textbox(
|
101 |
label="Response",
|
|
|
77 |
with gr.Blocks() as demo:
|
78 |
gr.Markdown("""
|
79 |
# Retrieval (ColBERT) + Generation (DSPy & Mistral)
|
80 |
+
- Note:
|
81 |
+
- building the retrieval model will be slow on **free CPU** (expect 5+ minutes).
|
82 |
+
- first question/answer will be slow (2 minutes for model loading). Subsequent question (approx. 10 seconds)
|
83 |
- Usage: upload a few PDF files to index. Build the model. Ask questions.
|
84 |
""")
|
85 |
|
|
|
97 |
# Question to answer
|
98 |
question = gr.Textbox(
|
99 |
label="Question",
|
100 |
+
placeholder="What is dividend stripping?"
|
101 |
)
|
102 |
response = gr.Textbox(
|
103 |
label="Response",
|