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