artificialguybr commited on
Commit
c887904
·
verified ·
1 Parent(s): 55a515e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,12 +34,12 @@ with gr.Blocks() as demo:
34
  with gr.Column():
35
  gr.Markdown("### PDF to Word")
36
  pdf_input = gr.File(label="Upload PDF")
37
- word_output = gr.File(label="Download Word", type="docx")
38
  pdf_to_word_btn = gr.Button("Convert")
39
  with gr.Column():
40
  gr.Markdown("### Word to PDF")
41
  word_input = gr.File(label="Upload Word")
42
- pdf_output = gr.File(label="Download PDF", type="pdf")
43
  word_to_pdf_btn = gr.Button("Convert")
44
 
45
  pdf_to_word_btn.click(pdf_to_word, inputs=[pdf_input], outputs=[word_output])
 
34
  with gr.Column():
35
  gr.Markdown("### PDF to Word")
36
  pdf_input = gr.File(label="Upload PDF")
37
+ word_output = gr.File(label="Download Word", type="binary")
38
  pdf_to_word_btn = gr.Button("Convert")
39
  with gr.Column():
40
  gr.Markdown("### Word to PDF")
41
  word_input = gr.File(label="Upload Word")
42
+ pdf_output = gr.File(label="Download PDF", type="binary")
43
  word_to_pdf_btn = gr.Button("Convert")
44
 
45
  pdf_to_word_btn.click(pdf_to_word, inputs=[pdf_input], outputs=[word_output])