import gradio as gr | |
with gr.Blocks() as demo: | |
with gr.Row(): | |
pdf_file = gr.File(label='Upload a PDF') | |
mkd = gr.Markdown(' <i>OR</i> ') | |
pdf_link = gr.Textbox(placeholder='Enter an arxiv link here', label='Provide a link') | |
with gr.Row(): | |
parsed_output = gr.Textbox(lines=5) | |
demo.launch(debug=True) | |