amamrnaf commited on
Commit
9a9b736
·
verified ·
1 Parent(s): 48ae0e9
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -254,17 +254,17 @@ def process_file(file, option):
254
  demo = gr.Interface(
255
  fn=process_file,
256
  inputs=[
257
- gr.File(label="Upload PDF or Image"), # File upload input
258
  gr.Radio(["Noc_timesheet_new","Noc_invoice","Noc_timesheet_residential_old", "Noc_timesheet_rotational_old", "Noc_PO"], label="Choose an option") # Radio buttons for options
259
  ],
260
  outputs="text", # Text output
261
- title="PDF/Image Processor",
262
  description="Upload a PDF or image and choose an option to process the content."
263
  )
264
 
265
  with gr.Blocks() as app:
266
  demo.render()
267
- gr.Markdown("### PDF/Image examples") # Section title
268
  with gr.Row():
269
  gr.Image("TS.png", label="NOC timesheet example")
270
  gr.Image("invoice.png", label="NOC invoice example")
 
254
  demo = gr.Interface(
255
  fn=process_file,
256
  inputs=[
257
+ gr.File(label="Upload PDF,Image or Excel"), # File upload input
258
  gr.Radio(["Noc_timesheet_new","Noc_invoice","Noc_timesheet_residential_old", "Noc_timesheet_rotational_old", "Noc_PO"], label="Choose an option") # Radio buttons for options
259
  ],
260
  outputs="text", # Text output
261
+ title="Document Processor",
262
  description="Upload a PDF or image and choose an option to process the content."
263
  )
264
 
265
  with gr.Blocks() as app:
266
  demo.render()
267
+ gr.Markdown("### Examples") # Section title
268
  with gr.Row():
269
  gr.Image("TS.png", label="NOC timesheet example")
270
  gr.Image("invoice.png", label="NOC invoice example")