Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def process_input(
|
4 |
-
print("Received Message:", message)
|
5 |
print("Received PDF File:", pdf_file.name)
|
6 |
|
7 |
# Save the received PDF file
|
@@ -14,7 +13,6 @@ def process_input(message, pdf_file):
|
|
14 |
iface = gr.Interface(
|
15 |
fn=process_input,
|
16 |
inputs=[
|
17 |
-
"text",
|
18 |
gr.File(
|
19 |
type="binary",
|
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.",
|
|
|
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
|
|
|
13 |
iface = gr.Interface(
|
14 |
fn=process_input,
|
15 |
inputs=[
|
|
|
16 |
gr.File(
|
17 |
type="binary",
|
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.",
|