Spaces:
Running
Running
robertselvam
commited on
Commit
·
5f35cc3
1
Parent(s):
cbb1c8c
Update app.py
Browse files
app.py
CHANGED
@@ -91,19 +91,7 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
|
|
91 |
clauses_btn = gr.Button("Clauses Extracter")
|
92 |
clauses = gr.Textbox(label = "Clauses", lines=10)
|
93 |
|
94 |
-
|
95 |
-
# with gr.Tab("pdf to json"):
|
96 |
-
# with gr.Column(elem_id = "col-container",scale=0.80):
|
97 |
-
# pdf_to_json_btn = gr.Button("pdf to json Extracter")
|
98 |
-
# pdf_to_json = gr.Textbox(label = "Pdf to Json", lines=10)
|
99 |
-
|
100 |
-
# # pdf_to_json_btn.click(PdftoJson.extract_text_from_pdf,upload_button,pdf_to_json)
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
summary = gr.Textbox(label = "Summary")
|
105 |
-
extractor = Extractor()
|
106 |
-
|
107 |
upload_button.upload(file_output_fn,upload_button,file_output)
|
108 |
summary_btn.click( extractor._refine_summary,[upload_button],summary)
|
109 |
|
|
|
91 |
clauses_btn = gr.Button("Clauses Extracter")
|
92 |
clauses = gr.Textbox(label = "Clauses", lines=10)
|
93 |
|
94 |
+
extractor = Extractor()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
upload_button.upload(file_output_fn,upload_button,file_output)
|
96 |
summary_btn.click( extractor._refine_summary,[upload_button],summary)
|
97 |
|