Didier commited on
Commit
c7a2aef
·
verified ·
1 Parent(s): b745303

Update app.py

Browse files

Uodate comments

Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -77,7 +77,8 @@ 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
  """)
82
 
83
  # Input files and build status
@@ -93,7 +94,7 @@ with gr.Blocks() as demo:
93
 
94
  # Question to answer
95
  question = gr.Textbox(
96
- label="Question to answer",
97
  placeholder="How do tax administrations address aggressive tax planning by HNWIs?"
98
  )
99
  response = gr.Textbox(
@@ -133,8 +134,8 @@ with gr.Blocks() as demo:
133
  - Generation framework: DSPy and Mistral.
134
  - How
135
  - Upload PDF files to index.
136
- - Build the retrieval augmented model (might take a few minutes)
137
- - Ask a question to generate a response.
138
  """)
139
 
140
  # Click actions
 
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
 
84
  # Input files and build status
 
94
 
95
  # Question to answer
96
  question = gr.Textbox(
97
+ label="Question about the content of the documents uploaded",
98
  placeholder="How do tax administrations address aggressive tax planning by HNWIs?"
99
  )
100
  response = gr.Textbox(
 
134
  - Generation framework: DSPy and Mistral.
135
  - How
136
  - Upload PDF files to index.
137
+ - Build the retrieval generation model (might take a few minutes)
138
+ - Ask a question about the content of those uploaded documents.
139
  """)
140
 
141
  # Click actions