Spaces:
Runtime error
Runtime error
Commit ·
147a544
1
Parent(s): 68f7c5a
Update app.py
Browse files
app.py
CHANGED
|
@@ -291,10 +291,13 @@ with gr.Blocks() as demo:
|
|
| 291 |
with gr.Column(scale=2):
|
| 292 |
outIndex1 = gr.File(label="Upload Previous Index Json", interactive=True)
|
| 293 |
# inp1 = gr.File(label="Input PDF")
|
| 294 |
-
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
|
|
|
|
|
|
|
|
|
| 298 |
out1 = gr.Textbox(label="Summary")
|
| 299 |
# outIndex1 = gr.File(label="Upload Previous Index Json", interactive=True)
|
| 300 |
inp1.change(pdfv1, inputs=[inp1,chainType1], outputs=[out1, outIndex1])
|
|
|
|
| 291 |
with gr.Column(scale=2):
|
| 292 |
outIndex1 = gr.File(label="Upload Previous Index Json", interactive=True)
|
| 293 |
# inp1 = gr.File(label="Input PDF")
|
| 294 |
+
with gr.Row():
|
| 295 |
+
with gr.Column(scale=4):
|
| 296 |
+
doSum1 = gr.Button("Summarise")
|
| 297 |
+
with gr.Column(scale=1):
|
| 298 |
+
chainType1 = gr.Radio(
|
| 299 |
+
["map_reduce", "stuff", "refine"], label="Chain_Type", value="map_reduce"
|
| 300 |
+
)
|
| 301 |
out1 = gr.Textbox(label="Summary")
|
| 302 |
# outIndex1 = gr.File(label="Upload Previous Index Json", interactive=True)
|
| 303 |
inp1.change(pdfv1, inputs=[inp1,chainType1], outputs=[out1, outIndex1])
|