Spaces:
Sleeping
Sleeping
robertselvam
commited on
Commit
·
8d47bcf
1
Parent(s):
1636396
Update app.py
Browse files
app.py
CHANGED
@@ -60,20 +60,12 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
|
|
60 |
key_value_btn.click( KeyValue.extract_key_value_pair,summary,key_value)
|
61 |
clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
|
62 |
|
63 |
-
with gr.Tabs("pdf"):
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
"Browse File",file_types=[".txt", ".pdf", ".doc", ".docx",".json",".csv"],
|
70 |
-
elem_classes="uploadbutton")
|
71 |
-
summary_btn = gr.Button("Get Summary",elem_classes="uploadbutton")
|
72 |
-
# ex= HeadingsExtractor()
|
73 |
-
# ex.gradio_interface()
|
74 |
-
with gr.TabItem("Incorrect_Sentence"):
|
75 |
-
ex= IncorrectSentenceFinder()
|
76 |
-
ex.gradio_interface()
|
77 |
# with gr.Row(elem_id = "col-container",scale=0.80):
|
78 |
# with gr.Column(elem_id = "col-container",scale=0.80):
|
79 |
# file = gr.File(label="File",elem_classes="filenameshow")
|
|
|
60 |
key_value_btn.click( KeyValue.extract_key_value_pair,summary,key_value)
|
61 |
clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
|
62 |
|
63 |
+
with gr.Tabs("pdf"):
|
64 |
+
ex= HeadingsExtractor()
|
65 |
+
ex.gradio_interface()
|
66 |
+
with gr.Tabs("Incorrect_Sentence"):
|
67 |
+
inf= IncorrectSentenceFinder()
|
68 |
+
inf.gradio_interface()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
# with gr.Row(elem_id = "col-container",scale=0.80):
|
70 |
# with gr.Column(elem_id = "col-container",scale=0.80):
|
71 |
# file = gr.File(label="File",elem_classes="filenameshow")
|