DSatishchandra commited on
Commit
f4034fe
β€’
1 Parent(s): ec2fc92

Rename AL-NISF.py to ALNISF.py

Browse files
Files changed (1) hide show
  1. AL-NISF.py β†’ ALNISF.py +2 -7
AL-NISF.py β†’ ALNISF.py RENAMED
@@ -36,8 +36,6 @@ def clean_description(description, item_number=None):
36
 
37
  return description.strip()
38
 
39
-
40
-
41
  # Function: Parse PO Items with Filters
42
  def parse_po_items_with_filters(text):
43
  """
@@ -122,9 +120,6 @@ def parse_po_items_with_filters(text):
122
  df = pd.DataFrame(data)
123
  return df, "Data extracted successfully."
124
 
125
-
126
-
127
-
128
  # Function: Save to Excel
129
  def save_to_excel(df, output_path="extracted_po_data.xlsx"):
130
  df.to_excel(output_path, index=False)
@@ -151,10 +146,10 @@ def create_gradio_interface():
151
  gr.File(label="Download Extracted Data"),
152
  gr.Textbox(label="Status"),
153
  ],
154
- title="PO Data Extraction",
155
  description="Upload a Purchase Order PDF to extract items into an Excel file.",
156
  )
157
 
158
  if __name__ == "__main__":
159
  interface = create_gradio_interface()
160
- interface.launch()
 
36
 
37
  return description.strip()
38
 
 
 
39
  # Function: Parse PO Items with Filters
40
  def parse_po_items_with_filters(text):
41
  """
 
120
  df = pd.DataFrame(data)
121
  return df, "Data extracted successfully."
122
 
 
 
 
123
  # Function: Save to Excel
124
  def save_to_excel(df, output_path="extracted_po_data.xlsx"):
125
  df.to_excel(output_path, index=False)
 
146
  gr.File(label="Download Extracted Data"),
147
  gr.Textbox(label="Status"),
148
  ],
149
+ title="ALNISF PO Data Extraction",
150
  description="Upload a Purchase Order PDF to extract items into an Excel file.",
151
  )
152
 
153
  if __name__ == "__main__":
154
  interface = create_gradio_interface()
155
+ interface.launch()