Spaces:
Running
Running
changes
Browse files
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
|
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="
|
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("###
|
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")
|