Spaces:
Sleeping
Sleeping
Max2191 commited on
Commit ·
ca284cf
1
Parent(s): f72353d
Fix Space file handling and startup
Browse files
app.py
CHANGED
|
@@ -90,10 +90,10 @@ with gr.Blocks(title="PaperCast") as demo:
|
|
| 90 |
|
| 91 |
with gr.Tab("1. Process paper"):
|
| 92 |
with gr.Row():
|
| 93 |
-
uploaded_file = gr.File(label="Upload a PDF",
|
| 94 |
source_text = gr.Textbox(
|
| 95 |
label="Or enter an arXiv ID / PDF URL",
|
| 96 |
-
placeholder="
|
| 97 |
)
|
| 98 |
with gr.Row():
|
| 99 |
parser_label = gr.Radio(
|
|
@@ -167,4 +167,4 @@ with gr.Blocks(title="PaperCast") as demo:
|
|
| 167 |
|
| 168 |
|
| 169 |
if __name__ == "__main__":
|
| 170 |
-
demo.queue().launch()
|
|
|
|
| 90 |
|
| 91 |
with gr.Tab("1. Process paper"):
|
| 92 |
with gr.Row():
|
| 93 |
+
uploaded_file = gr.File(label="Upload a PDF", type="filepath")
|
| 94 |
source_text = gr.Textbox(
|
| 95 |
label="Or enter an arXiv ID / PDF URL",
|
| 96 |
+
placeholder="1706.03762 or https://arxiv.org/pdf/1706.03762",
|
| 97 |
)
|
| 98 |
with gr.Row():
|
| 99 |
parser_label = gr.Radio(
|
|
|
|
| 167 |
|
| 168 |
|
| 169 |
if __name__ == "__main__":
|
| 170 |
+
demo.queue().launch(ssr_mode=False)
|