tcy6 commited on
Commit
3758246
·
1 Parent(s): 34db6c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -270,7 +270,7 @@ with gr.Blocks() as app:
270
  with gr.Row():
271
  kb_id_input = gr.Text(label="Your Knowledge Base ID (paste your Knowledge Base ID here, it is re-usable):")
272
  query_input = gr.Text(label="Your Queston")
273
- topk_input = inputs=gr.Number(value=5, minimum=1, maximum=10, step=1, label="Number of pages to retrieve")
274
  retrieve_button = gr.Button("Step2: Retrieve Pages")
275
 
276
  with gr.Row():
@@ -279,7 +279,7 @@ with gr.Blocks() as app:
279
  ["main_figure.pdf", "e96dcf1ff7c0041bf67151fcd6351326", "What is RAG-V?"],
280
  ["main_figure.pdf", "e96dcf1ff7c0041bf67151fcd6351326", "How does RAG-V perform?"]
281
  ],
282
- inputs=[file_input, file_result, query_input],
283
  )
284
 
285
  with gr.Row():
 
270
  with gr.Row():
271
  kb_id_input = gr.Text(label="Your Knowledge Base ID (paste your Knowledge Base ID here, it is re-usable):")
272
  query_input = gr.Text(label="Your Queston")
273
+ topk_input = inputs=gr.Number(value=1, minimum=1, maximum=10, step=1, label="Number of pages to retrieve")
274
  retrieve_button = gr.Button("Step2: Retrieve Pages")
275
 
276
  with gr.Row():
 
279
  ["main_figure.pdf", "e96dcf1ff7c0041bf67151fcd6351326", "What is RAG-V?"],
280
  ["main_figure.pdf", "e96dcf1ff7c0041bf67151fcd6351326", "How does RAG-V perform?"]
281
  ],
282
+ inputs=[file_input, kb_id_input, query_input],
283
  )
284
 
285
  with gr.Row():