naveenvenkatesh commited on
Commit
57c9413
1 Parent(s): 1b87102

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -9,7 +9,6 @@ from headings_extractor import HeadingsExtractor
9
  from incompletesentencefinder import IncompleteSentenceFinder
10
  from aggressive_content_finder import AggressiveContentFinder
11
  from extract_date import ExtractDateAndDuration
12
- from invoice_extractor import InvoiceKeyValuePair
13
  from pdftojson import PdftoJson
14
  from ContractGenerator import ContractGenerator
15
  from contract_missing_clausses import ContractMissingClauses
@@ -80,12 +79,7 @@ with gr.Blocks(css="style.css",theme='freddyaboulton/test-blue') as demo:
80
  with gr.TabItem("Extract Date"):
81
  with gr.Column(elem_id = "col-container",scale=0.80):
82
  extract_date_btn = gr.Button("Extract date")
83
- extracted_date = gr.Textbox(label = "Extract date", lines=10)
84
-
85
- with gr.TabItem("Invoice"):
86
- with gr.Column(elem_id = "col-container",scale=0.80):
87
- extract_invoice_key_value = gr.Button("Extract Invoice Key Value")
88
- extracted_invoice_key_value = gr.Textbox(label = "Extracted Key Value", lines=10)
89
 
90
  with gr.TabItem("Pdf to Json"):
91
  with gr.Column(elem_id = "col-container",scale=0.80):
@@ -127,9 +121,6 @@ with gr.Blocks(css="style.css",theme='freddyaboulton/test-blue') as demo:
127
  date = ExtractDateAndDuration()
128
  extract_date_btn.click(date.itrate_each_page,upload_button,extracted_date)
129
 
130
- invoice = InvoiceKeyValuePair()
131
- extract_invoice_key_value.click(invoice.extract_key_value_pair,upload_button,extracted_invoice_key_value)
132
-
133
  pdftojson = PdftoJson()
134
  extract_json_btn.click(pdftojson.extract_text_from_pdf,upload_button,extracted_json)
135
 
 
9
  from incompletesentencefinder import IncompleteSentenceFinder
10
  from aggressive_content_finder import AggressiveContentFinder
11
  from extract_date import ExtractDateAndDuration
 
12
  from pdftojson import PdftoJson
13
  from ContractGenerator import ContractGenerator
14
  from contract_missing_clausses import ContractMissingClauses
 
79
  with gr.TabItem("Extract Date"):
80
  with gr.Column(elem_id = "col-container",scale=0.80):
81
  extract_date_btn = gr.Button("Extract date")
82
+ extracted_date = gr.Textbox(label = "Extract date", lines=10)
 
 
 
 
 
83
 
84
  with gr.TabItem("Pdf to Json"):
85
  with gr.Column(elem_id = "col-container",scale=0.80):
 
121
  date = ExtractDateAndDuration()
122
  extract_date_btn.click(date.itrate_each_page,upload_button,extracted_date)
123
 
 
 
 
124
  pdftojson = PdftoJson()
125
  extract_json_btn.click(pdftojson.extract_text_from_pdf,upload_button,extracted_json)
126