Spaces:
Sleeping
Sleeping
Commit ·
4a83fc7
1
Parent(s): fb2e939
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
|
|
| 61 |
with gr.Tab("pdf"):
|
| 62 |
with gr.Row(elem_id = "col-container",scale=0.80):
|
| 63 |
with gr.Column(elem_id = "col-container",scale=0.80):
|
| 64 |
-
|
| 65 |
|
| 66 |
with gr.Column(elem_id = "col-container",scale=0.20):
|
| 67 |
upload_button1 = gr.UploadButton(
|
|
@@ -72,7 +72,7 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
|
|
| 72 |
with gr.Row(elem_id = "col-container",scale=0.60):
|
| 73 |
headings = gr.Textbox(label = "Headings")
|
| 74 |
|
| 75 |
-
upload_button.upload(file_output_fn,upload_button1,
|
| 76 |
headings_btn.click(HeadingsExtractor.extarct_text,upload_button1,headings)
|
| 77 |
|
| 78 |
|
|
|
|
| 61 |
with gr.Tab("pdf"):
|
| 62 |
with gr.Row(elem_id = "col-container",scale=0.80):
|
| 63 |
with gr.Column(elem_id = "col-container",scale=0.80):
|
| 64 |
+
file = gr.File(label="File",elem_classes="filenameshow")
|
| 65 |
|
| 66 |
with gr.Column(elem_id = "col-container",scale=0.20):
|
| 67 |
upload_button1 = gr.UploadButton(
|
|
|
|
| 72 |
with gr.Row(elem_id = "col-container",scale=0.60):
|
| 73 |
headings = gr.Textbox(label = "Headings")
|
| 74 |
|
| 75 |
+
upload_button.upload(file_output_fn,upload_button1,file)
|
| 76 |
headings_btn.click(HeadingsExtractor.extarct_text,upload_button1,headings)
|
| 77 |
|
| 78 |
|