Shami96 commited on
Commit
6afedff
·
verified ·
1 Parent(s): 5fb575a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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="file"),
58
- gr.File(label="Upload Word File", type="file")
59
  ],
60
  outputs=gr.File(label="Download Updated Word File"),
61
- title="Red Text Replacer (Label-Aware)",
62
- description="Upload a PDF and Word document. Red-colored text in the Word doc will be replaced by matching values from the PDF using label-based 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()