Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,10 +54,10 @@ def process_files(pdf_file, word_file):
|
|
| 54 |
gr.Interface(
|
| 55 |
fn=process_files,
|
| 56 |
inputs=[
|
| 57 |
-
gr.File(label="Upload PDF File", type="
|
| 58 |
-
gr.File(label="Upload Word File", type="
|
| 59 |
],
|
| 60 |
outputs=gr.File(label="Download Updated Word File"),
|
| 61 |
-
title="Red Text Replacer
|
| 62 |
-
description="Upload a PDF and Word document. Red-colored text in the Word doc will be replaced by matching
|
| 63 |
).launch()
|
|
|
|
| 54 |
gr.Interface(
|
| 55 |
fn=process_files,
|
| 56 |
inputs=[
|
| 57 |
+
gr.File(label="Upload PDF File", type="filepath"),
|
| 58 |
+
gr.File(label="Upload Word File", type="filepath")
|
| 59 |
],
|
| 60 |
outputs=gr.File(label="Download Updated Word File"),
|
| 61 |
+
title="Red Text Replacer",
|
| 62 |
+
description="Upload a PDF and Word document. Red-colored text in the Word doc will be replaced by matching content from the PDF."
|
| 63 |
).launch()
|