jackycedar commited on
Commit
147a544
·
1 Parent(s): 68f7c5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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
- chainType1 = gr.Radio(
295
- ["map_reduce", "stuff", "refine"], label="Chain_Type", value="map_reduce"
296
- )
297
- doSum1 = gr.Button("Summarise")
 
 
 
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])