ymcmy commited on
Commit
57d0a62
·
verified ·
1 Parent(s): 37f7974

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -235,7 +235,7 @@ def pdf_highlighter(input_pdf_source, input_page_range, input_pdf):
235
  return output_pdf_path
236
  input_pdf_source = gr.Radio(choices=["euro_new", "euro_old", "western_civ", "world", "us_history"], label="Select PDF Source or upload your own")
237
  input_page_range = gr.Textbox(value="1-5", label="Enter page range (e.g. 1-5,8,11), maximum page number is 10")
238
- input_pdf = gr.File(file_count="single", type="file", label="Upload PDF")
239
  output_pdf = gr.File(label="Download Highlighted PDF")
240
 
241
  iface = gr.Interface(fn=pdf_highlighter, inputs=[input_pdf_source, input_page_range, input_pdf], outputs=output_pdf, title="AI PDF Highlighter, specialized at history docs")
 
235
  return output_pdf_path
236
  input_pdf_source = gr.Radio(choices=["euro_new", "euro_old", "western_civ", "world", "us_history"], label="Select PDF Source or upload your own")
237
  input_page_range = gr.Textbox(value="1-5", label="Enter page range (e.g. 1-5,8,11), maximum page number is 10")
238
+ input_pdf = gr.File(file_count="single", type="filepath", label="Upload PDF")
239
  output_pdf = gr.File(label="Download Highlighted PDF")
240
 
241
  iface = gr.Interface(fn=pdf_highlighter, inputs=[input_pdf_source, input_page_range, input_pdf], outputs=output_pdf, title="AI PDF Highlighter, specialized at history docs")