jithenderchoudary commited on
Commit
05a3ebf
·
verified ·
1 Parent(s): 91c6492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,7 +2,6 @@ import fitz # PyMuPDF
2
  import pandas as pd
3
  import gradio as gr
4
  import tempfile
5
- import os
6
 
7
  def extract_po_to_excel(pdf_file):
8
  # Load PDF and extract text
@@ -49,11 +48,12 @@ def main(pdf_file):
49
  # Gradio interface
50
  interface = gr.Interface(
51
  fn=main,
52
- inputs=gr.inputs.File(label="Upload PO PDF"),
53
- outputs=gr.outputs.File(label="Download Excel File"),
54
  title="PDF to Excel Converter",
55
  description="Upload a PO PDF file, and download it as an Excel sheet."
56
  )
57
 
58
  if __name__ == "__main__":
59
  interface.launch()
 
 
2
  import pandas as pd
3
  import gradio as gr
4
  import tempfile
 
5
 
6
  def extract_po_to_excel(pdf_file):
7
  # Load PDF and extract text
 
48
  # Gradio interface
49
  interface = gr.Interface(
50
  fn=main,
51
+ inputs=gr.File(label="Upload PO PDF"),
52
+ outputs=gr.File(label="Download Excel File"),
53
  title="PDF to Excel Converter",
54
  description="Upload a PO PDF file, and download it as an Excel sheet."
55
  )
56
 
57
  if __name__ == "__main__":
58
  interface.launch()
59
+