Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
with gr.Blocks() as demo:
|
| 4 |
+
|
| 5 |
+
with gr.Row():
|
| 6 |
+
pdf_file = gr.File(label='Upload a PDF')
|
| 7 |
+
mkd = gr.Markdown(' <i>OR</i> ')
|
| 8 |
+
pdf_link = gr.Textbox(placeholder='Enter an arxiv link here', label='Provide a link')
|
| 9 |
+
|
| 10 |
+
with gr.Row():
|
| 11 |
+
parsed_output = gr.Textbox(lines=5)
|
| 12 |
+
|
| 13 |
+
demo.launch(debug=True)
|