Spaces:
Runtime error
Runtime error
Commit ·
f679012
1
Parent(s): 5234b7a
updated the gradio inputs to file
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def qa_system(pdf_files, openai_key, prompt, chain_type , k):
|
|
| 37 |
|
| 38 |
# get the result
|
| 39 |
result = qa({"query": prompt})
|
| 40 |
-
return result['result'], ''.join(doc.page_content for doc in
|
| 41 |
|
| 42 |
# define the Gradio interface
|
| 43 |
input_file = gr.File(file_count="multiple",label="PDF File")
|
|
|
|
| 37 |
|
| 38 |
# get the result
|
| 39 |
result = qa({"query": prompt})
|
| 40 |
+
return result['result'], ''.join(doc.page_content for doc in result["source_documents"])
|
| 41 |
|
| 42 |
# define the Gradio interface
|
| 43 |
input_file = gr.File(file_count="multiple",label="PDF File")
|