Spaces:
Sleeping
Sleeping
Commit
·
1f1a29f
1
Parent(s):
a5664be
Update app.py
Browse files
app.py
CHANGED
@@ -107,17 +107,19 @@ with gr.Blocks() as demo:
|
|
107 |
category = gr.Textbox(value="hep-th", label="Which category to search through. See https://arxiv.org/category_taxonomy for possible values.")
|
108 |
|
109 |
with gr.Box():
|
110 |
-
|
|
|
111 |
gr.Examples(
|
112 |
-
[["Supersymmetric Conformal Field Theory"], ["Black hole information paradox"]],
|
113 |
input_text,
|
114 |
)
|
115 |
|
116 |
-
|
117 |
|
118 |
with gr.Column():
|
119 |
-
|
|
|
120 |
|
121 |
-
|
122 |
|
123 |
demo.queue().launch()
|
|
|
107 |
category = gr.Textbox(value="hep-th", label="Which category to search through. See https://arxiv.org/category_taxonomy for possible values.")
|
108 |
|
109 |
with gr.Box():
|
110 |
+
gr.Markdown("Describe your field of research in a few sentences.")
|
111 |
+
input_text = gr.Textbox(placeholder="The relationship between Euclidean solutions to supergravity and black hole microstates.", container=False, show_label=False)
|
112 |
gr.Examples(
|
113 |
+
[["Supersymmetric Conformal Field Theory"], ["Black hole information paradox and the island conjecture"]],
|
114 |
input_text,
|
115 |
)
|
116 |
|
117 |
+
button = gr.Button(value="Submit")
|
118 |
|
119 |
with gr.Column():
|
120 |
+
with gr.Box():
|
121 |
+
output = gr.Markdown("Press 'submit' to see your results.")
|
122 |
|
123 |
+
button.click(fn=get_data, inputs=[category, lookback_days,input_text], outputs=output)
|
124 |
|
125 |
demo.queue().launch()
|