robertselvam commited on
Commit
3f71ccb
·
1 Parent(s): e0549a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,27 +24,27 @@ with gr.Blocks(css="style.css",theme='xiaobaiyuan/theme_brief') as demo:
24
  upload_button.upload( extractor._refine_summary,[upload_button],summary)
25
  with gr.Tab("Tags"):
26
  with gr.Column(elem_id = "col-container"):
27
- tags_btn = gr.Button("Tags Extracter")
28
  tags = gr.Textbox(lines=4,label = "Tags")
29
  tags_btn.click(Tags.extract_tags,summary,tags)
30
 
31
  with gr.Tab("Key Values"):
32
  with gr.Column(elem_id = "col-container"):
33
- key_value_btn = gr.Button("Key Value Extracter")
34
  key_value = gr.Textbox(label = "Key Value")
35
 
36
  key_value_btn.click( KeyValue.extract_key_value_pair,summary,key_value)
37
 
38
  with gr.Tab("Clauses"):
39
  with gr.Column(elem_id = "col-container"):
40
- clauses_btn = gr.Button("Clauses Extracter")
41
  clauses = gr.Textbox(label = "Clauses")
42
 
43
  clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
44
 
45
  # with gr.Tab("pdf to json"):
46
  # with gr.Column(elem_id = "col-container"):
47
- # pdf_to_json_btn = gr.Button("pdf to json Extracter")
48
  # pdf_to_json = gr.Textbox(label = "Pdf to Json")
49
 
50
  # pdf_to_json_btn.click(PdftoJson.extract_text_from_pdf,upload_button,pdf_to_json)
 
24
  upload_button.upload( extractor._refine_summary,[upload_button],summary)
25
  with gr.Tab("Tags"):
26
  with gr.Column(elem_id = "col-container"):
27
+ tags_btn = gr.Button("Tags Extractor")
28
  tags = gr.Textbox(lines=4,label = "Tags")
29
  tags_btn.click(Tags.extract_tags,summary,tags)
30
 
31
  with gr.Tab("Key Values"):
32
  with gr.Column(elem_id = "col-container"):
33
+ key_value_btn = gr.Button("Key Value Extractor")
34
  key_value = gr.Textbox(label = "Key Value")
35
 
36
  key_value_btn.click( KeyValue.extract_key_value_pair,summary,key_value)
37
 
38
  with gr.Tab("Clauses"):
39
  with gr.Column(elem_id = "col-container"):
40
+ clauses_btn = gr.Button("Clauses Extractor")
41
  clauses = gr.Textbox(label = "Clauses")
42
 
43
  clauses_btn.click(Clauses.get_extracted_clauses,summary,clauses)
44
 
45
  # with gr.Tab("pdf to json"):
46
  # with gr.Column(elem_id = "col-container"):
47
+ # pdf_to_json_btn = gr.Button("pdf to json Extractor")
48
  # pdf_to_json = gr.Textbox(label = "Pdf to Json")
49
 
50
  # pdf_to_json_btn.click(PdftoJson.extract_text_from_pdf,upload_button,pdf_to_json)