Didier commited on
Commit
b9e2642
·
verified ·
1 Parent(s): 29d567f

Update app.py

Browse files

Updating comments.

Files changed (1) hide show
  1. app.py +4 -2
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: building the retrieval model might take a few minutes.
 
 
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="How do tax administrations address aggressive tax planning by HNWIs?"
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",