YanshekWoo commited on
Commit
5dc11b3
·
verified ·
1 Parent(s): 7feeeff

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -100,7 +100,7 @@ def main(args):
100
  fn=retrieve_document_fn,
101
  inputs=["text"],
102
  outputs=["text", "text", "text"],
103
- additional_inputs=[gr.Textbox("Instruct: Given a query, retrieve documents that answer the query. \n Query: ", label="Instruct of Query"), [document_data, document_index]],
104
  concurrency_limit=1,
105
  )
106
 
 
100
  fn=retrieve_document_fn,
101
  inputs=["text"],
102
  outputs=["text", "text", "text"],
103
+ additional_inputs=[gr.Textbox("Instruct: Given a query, retrieve documents that answer the query. \n Query: ", label="Instruct of Query"), gr.State(value=[document_data, document_index])],
104
  concurrency_limit=1,
105
  )
106