Mishmosh commited on
Commit
fdfa3e5
1 Parent(s): b775b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -1,13 +1,8 @@
1
  import gradio as gr
2
-
3
  def process_input(pdf_file):
4
  print("Received PDF File:", pdf_file.name)
5
-
6
- # Save the received PDF file
7
  with open("received_pdf.pdf", "wb") as output_file:
8
  output_file.write(pdf_file.read())
9
-
10
- # Return None to avoid displaying any output
11
  return None
12
 
13
  iface = gr.Interface(
@@ -18,7 +13,7 @@ iface = gr.Interface(
18
  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.",
19
  ),
20
  ],
21
- outputs=None, # Set outputs to None to remove the output box
22
  )
23
 
24
  iface.launch()
 
1
  import gradio as gr
 
2
  def process_input(pdf_file):
3
  print("Received PDF File:", pdf_file.name)
 
 
4
  with open("received_pdf.pdf", "wb") as output_file:
5
  output_file.write(pdf_file.read())
 
 
6
  return None
7
 
8
  iface = gr.Interface(
 
13
  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.",
14
  ),
15
  ],
16
+ outputs=None,
17
  )
18
 
19
  iface.launch()