Spaces:
Sleeping
Sleeping
Commit
·
6b1fe0f
1
Parent(s):
106ae66
Update app.py
Browse files
app.py
CHANGED
@@ -76,17 +76,21 @@ with gr.Blocks() as demo:
|
|
76 |
Get a newsletter-style summary of today's Arxiv articles personalised to your field of research.
|
77 |
"""
|
78 |
)
|
79 |
-
|
80 |
-
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
input_text,
|
87 |
-
)
|
88 |
-
output = gr.Markdown()
|
89 |
-
btn = gr.Button(value="Submit")
|
90 |
btn.click(fn=get_data, inputs=[lookback_days,input_text], outputs=output)
|
91 |
|
92 |
demo.queue().launch()
|
|
|
76 |
Get a newsletter-style summary of today's Arxiv articles personalised to your field of research.
|
77 |
"""
|
78 |
)
|
79 |
+
with gr.Row():
|
80 |
+
with gr.Column()
|
81 |
+
with gr.Accordion("Parameters", open=False):
|
82 |
+
lookback_days = gr.Number(2, label="Articles from this many days in the past will be searched through.", minimum=1, maximum=7)
|
83 |
+
|
84 |
+
input_text = gr.Textbox(placeholder="Describe your field of research in a few words")
|
85 |
+
gr.Examples(
|
86 |
+
[["Supersymmetric Conformal Field Theory"], ["Black hole information paradox"]],
|
87 |
+
input_text,
|
88 |
+
)
|
89 |
+
btn = gr.Button(value="Submit")
|
90 |
|
91 |
+
with gr.Column():
|
92 |
+
output = gr.Markdown()
|
93 |
+
|
|
|
|
|
|
|
|
|
94 |
btn.click(fn=get_data, inputs=[lookback_days,input_text], outputs=output)
|
95 |
|
96 |
demo.queue().launch()
|