Mishmosh commited on
Commit
f0d232e
1 Parent(s): 3736ec2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,7 +8,8 @@ def process_input(message, pdf_file):
8
  with open("received_pdf.pdf", "wb") as output_file:
9
  output_file.write(pdf_file.read())
10
 
11
- return "Processing complete. Check the console for details."
 
12
 
13
  iface = gr.Interface(
14
  fn=process_input,
@@ -19,7 +20,7 @@ iface = gr.Interface(
19
  label="Please upload a PDF file that contains an abstract. You will receive a one-sentence summary of the PDF and can listen to it.",
20
  ),
21
  ],
22
- outputs="text",
23
  )
24
 
25
  iface.launch()
 
8
  with open("received_pdf.pdf", "wb") as output_file:
9
  output_file.write(pdf_file.read())
10
 
11
+ # Return None to avoid displaying any output
12
+ return None
13
 
14
  iface = gr.Interface(
15
  fn=process_input,
 
20
  label="Please upload a PDF file that contains an abstract. You will receive a one-sentence summary of the PDF and can listen to it.",
21
  ),
22
  ],
23
+ outputs=None, # Set outputs to None to remove the output box
24
  )
25
 
26
  iface.launch()