Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,10 +52,10 @@ def classify_paper(title, abstract):
|
|
| 52 |
|
| 53 |
with gr.Blocks(title='Paper classifier') as demo:
|
| 54 |
gr.Markdown('# Paper Topic Classifier')
|
| 55 |
-
gr.Markdown('Please enter an arXiv link **OR** fill title and abstract manually')
|
| 56 |
with gr.Row():
|
| 57 |
with gr.Column():
|
| 58 |
gr.Markdown('## Inputs')
|
|
|
|
| 59 |
arxiv_link = gr.Textbox(label="Arxiv link")
|
| 60 |
|
| 61 |
b1 = gr.Button("Parse Link")
|
|
@@ -69,6 +69,8 @@ with gr.Blocks(title='Paper classifier') as demo:
|
|
| 69 |
|
| 70 |
|
| 71 |
with gr.Column():
|
|
|
|
|
|
|
| 72 |
out = gr.Label(label="Topics")
|
| 73 |
b2.click(classify_paper, inputs=[title, abstract], outputs=out)
|
| 74 |
|
|
|
|
| 52 |
|
| 53 |
with gr.Blocks(title='Paper classifier') as demo:
|
| 54 |
gr.Markdown('# Paper Topic Classifier')
|
|
|
|
| 55 |
with gr.Row():
|
| 56 |
with gr.Column():
|
| 57 |
gr.Markdown('## Inputs')
|
| 58 |
+
gr.Markdown('Please enter an arXiv link **OR** fill title and abstract manually')
|
| 59 |
arxiv_link = gr.Textbox(label="Arxiv link")
|
| 60 |
|
| 61 |
b1 = gr.Button("Parse Link")
|
|
|
|
| 69 |
|
| 70 |
|
| 71 |
with gr.Column():
|
| 72 |
+
gr.Markdown('## Topics')
|
| 73 |
+
gr.Markdown('')
|
| 74 |
out = gr.Label(label="Topics")
|
| 75 |
b2.click(classify_paper, inputs=[title, abstract], outputs=out)
|
| 76 |
|