robertselvam commited on
Commit
1636396
·
1 Parent(s): 7e22cdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -60,12 +60,20 @@ 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.TabItem("pdf"):
64
- ex= HeadingsExtractor()
65
- ex.gradio_interface()
66
- with gr.TabItem("Incorrect_Sentence"):
67
- ex= IncorrectSentenceFinder()
68
- ex.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")
 
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
+ with gr.Row(elem_id = "col-container",scale=0.80):
65
+ with gr.Column(elem_id = "col-container",scale=0.80):
66
+ file_output = gr.File(label="File Status",elem_classes="filenameshow")
67
+ with gr.Column(elem_id = "col-container",scale=0.20):
68
+ upload_button = gr.UploadButton(
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")