File size: 514 Bytes
e8e2778 b775b0c f88e951 f0d232e e8e2778 f88e951 38e9d9f 3736ec2 38e9d9f fdfa3e5 f88e951 f5184a9 f88e951 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
import gradio as gr
def process_input(pdf_file):
print("Received PDF File:", pdf_file.name)
with open("received_pdf.pdf", "wb") as output_file:
output_file.write(pdf_file.read())
return None
iface = gr.Interface(
fn=process_input,
inputs=[
gr.File(
type="binary",
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.",
),
],
outputs=None,
)
iface.launch()
|