Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 |
|