iamnew123 commited on
Commit
26f3eec
·
verified ·
1 Parent(s): d18cfe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -33,10 +33,10 @@ def process(pdf_file):
33
 
34
  with gr.Blocks() as demo:
35
  gr.Markdown("## 📚 Law PDF Formatter")
36
- file = gr.File(file_types=[".pdf"], label="Upload PDF", type="filepath")
37
- btn = gr.Button("Extract")
38
- out = gr.Textbox(label="Extracted Text", lines=20)
39
-
40
  btn.click(fn=process, inputs=file, outputs=out)
41
 
42
- demo.launch()
 
33
 
34
  with gr.Blocks() as demo:
35
  gr.Markdown("## 📚 Law PDF Formatter")
36
+ with gr.Row():
37
+ file = gr.File(file_types=[".pdf"], label="Upload PDF", type="filepath")
38
+ btn = gr.Button("Extract Text")
39
+ out = gr.Textbox(label="Extracted Text", lines=20, interactive=True)
40
  btn.click(fn=process, inputs=file, outputs=out)
41
 
42
+ demo.launch(share=True, flagging_callback=None)