Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -132,9 +132,13 @@ def process_and_query(state, question):
|
|
132 |
# Create Gradio interface
|
133 |
iface = gr.Interface(
|
134 |
fn=upload_files,
|
135 |
-
inputs=gr.File(label="Upload PDF or DOCX file"),
|
136 |
outputs="json",
|
137 |
-
live=True
|
|
|
138 |
)
|
139 |
|
|
|
|
|
|
|
140 |
|
|
|
132 |
# Create Gradio interface
|
133 |
iface = gr.Interface(
|
134 |
fn=upload_files,
|
135 |
+
inputs=gr.inputs.File(label="Upload PDF or DOCX file"),
|
136 |
outputs="json",
|
137 |
+
live=True,
|
138 |
+
capture_session=True
|
139 |
)
|
140 |
|
141 |
+
iface.launch()
|
142 |
+
|
143 |
+
|
144 |
|