File size: 345 Bytes
c9e6420
 
 
 
 
1e06a50
 
 
c9e6420
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)