Spaces:
Running
Running
Sunab
commited on
Commit
·
eff8079
1
Parent(s):
b3f99d0
Add application file
Browse files
app.py
CHANGED
@@ -35,8 +35,8 @@ def redact_submission_ids(input_pdf):
|
|
35 |
# Create Gradio Interface
|
36 |
iface = gr.Interface(
|
37 |
fn=redact_submission_ids,
|
38 |
-
inputs=gr.
|
39 |
-
outputs=[gr.
|
40 |
live=False,
|
41 |
title="Redact Submission IDs"
|
42 |
)
|
|
|
35 |
# Create Gradio Interface
|
36 |
iface = gr.Interface(
|
37 |
fn=redact_submission_ids,
|
38 |
+
inputs=gr.File(label="Upload PDF"), # Updated from gr.inputs.File
|
39 |
+
outputs=[gr.File(label="Download Redacted PDF"), gr.Textbox(label="File Name")], # Updated from gr.outputs.File
|
40 |
live=False,
|
41 |
title="Redact Submission IDs"
|
42 |
)
|