on1onmangoes commited on
Commit
4204dae
1 Parent(s): f460321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -240,12 +240,13 @@ with gr.Blocks(css=CSS) as demo:
240
 
241
  with gr.Tab("Answer with RAG"):
242
  question_input = gr.Textbox(label="Enter Question for RAG")
 
243
  rag_output = gr.Textbox(label="RAG Answer Result", interactive=False)
244
 
245
  rag_button = gr.Button("Get Answer")
246
  rag_button.click(
247
  rag_api,
248
- inputs=question_input,
249
  outputs=rag_output
250
  )
251
 
 
240
 
241
  with gr.Tab("Answer with RAG"):
242
  question_input = gr.Textbox(label="Enter Question for RAG")
243
+ answer_with_rag_select_client_dropdown = gr.Dropdown(client_name, value="rosariarossi", label="Select or Type Client", allow_custom_value=True)
244
  rag_output = gr.Textbox(label="RAG Answer Result", interactive=False)
245
 
246
  rag_button = gr.Button("Get Answer")
247
  rag_button.click(
248
  rag_api,
249
+ inputs=[question_input,answer_with_rag_select_client_dropdown ],
250
  outputs=rag_output
251
  )
252