robertselvam commited on
Commit
49d9345
·
1 Parent(s): f73df00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -57,6 +57,20 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
57
  key_value_btn.click( KeyValue.extract_key_value_pair,summary,key_value)
58
  clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
59
  with gr.Tab("Tags"):
60
- pass
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
 
62
  demo.launch(debug=True)
 
57
  key_value_btn.click( KeyValue.extract_key_value_pair,summary,key_value)
58
  clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
59
  with gr.Tab("Tags"):
60
+ with gr.Row(elem_id = "col-container",scale=0.80):
61
+ with gr.Column(elem_id = "col-container",scale=0.80):
62
+ file_output1 = gr.File(label="File Status",elem_classes="filenameshow")
63
+
64
+ with gr.Column(elem_id = "col-container",scale=0.20):
65
+ upload_button1 = gr.UploadButton(
66
+ "Browse File",file_types=[".txt", ".pdf", ".doc", ".docx",".json",".csv"],
67
+ elem_classes="uploadbutton")
68
+ headings_btn = gr.Button("Get Headings",elem_classes="uploadbutton")
69
+
70
+ with gr.Row(elem_id = "col-container",scale=0.60):
71
+ headings = gr.Textbox(label = "Headings")
72
+
73
+ upload_button.upload(file_output_fn,upload_button,file_output)
74
+ headings_btn.click(HeadingsExtractor.extarct_text,upload_button1,headings)
75
 
76
  demo.launch(debug=True)