qtpi commited on
Commit
79edf21
·
verified ·
1 Parent(s): afbc49c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,12 +80,12 @@ def process_file(file):
80
  finally:
81
  if os.path.exists(temp_input.name):
82
  os.unlink(temp_input.name)
83
-
84
  def gradio_interface():
85
  interface = gr.Interface(
86
  fn=process_file,
87
  inputs=gr.File(label="Upload PDF File", file_types=[".pdf"], type="binary"),
88
- outputs=gr.Textbox(label="Output", lines=20),
89
  title="PDF Caption Grader",
90
  description="Detects misplacement of captions in figures and tables in PDF files."
91
  )
 
80
  finally:
81
  if os.path.exists(temp_input.name):
82
  os.unlink(temp_input.name)
83
+
84
  def gradio_interface():
85
  interface = gr.Interface(
86
  fn=process_file,
87
  inputs=gr.File(label="Upload PDF File", file_types=[".pdf"], type="binary"),
88
+ outputs=gr.Textbox(label="Output", lines=20, type="text"), # <- FIX HERE
89
  title="PDF Caption Grader",
90
  description="Detects misplacement of captions in figures and tables in PDF files."
91
  )