Spaces:
Runtime error
Runtime error
EliottZemour
commited on
Commit
•
1d7689e
1
Parent(s):
09c17f8
update app
Browse files
app.py
CHANGED
@@ -53,8 +53,11 @@ CSS = """
|
|
53 |
font-size: 16px;
|
54 |
}
|
55 |
|
|
|
|
|
56 |
#htel {
|
57 |
justify-content: center;
|
|
|
58 |
}
|
59 |
"""
|
60 |
|
@@ -65,24 +68,21 @@ def create_html_card(arxiv_link):
|
|
65 |
|
66 |
demo = gr.Blocks(css=CSS)
|
67 |
with demo:
|
68 |
-
gr.
|
69 |
-
|
70 |
-
|
71 |
-
<
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
Simply paste the url link of the arXiv paper and generate!
|
84 |
-
"""
|
85 |
-
)
|
86 |
|
87 |
with gr.Column():
|
88 |
with gr.Row():
|
@@ -97,6 +97,13 @@ with demo:
|
|
97 |
with gr.Row():
|
98 |
card = gr.HTML(elem_id="htel")
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
button.click(
|
101 |
fn=create_html_card,
|
102 |
inputs=[text],
|
|
|
53 |
font-size: 16px;
|
54 |
}
|
55 |
|
56 |
+
#ctr {text-align: center;}
|
57 |
+
|
58 |
#htel {
|
59 |
justify-content: center;
|
60 |
+
text-align: center;
|
61 |
}
|
62 |
"""
|
63 |
|
|
|
68 |
|
69 |
demo = gr.Blocks(css=CSS)
|
70 |
with demo:
|
71 |
+
with gr.Column():
|
72 |
+
gr.Markdown("# arXiv Cards Generator ⚙️", elem_id="ctr")
|
73 |
+
gr.HTML("""
|
74 |
+
<p align="center">
|
75 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/7/7a/ArXiv_logo_2022.png" alt="report" width="150">
|
76 |
+
</p>
|
77 |
+
""", elem_id="ctr")
|
78 |
+
gr.Markdown(
|
79 |
+
"""
|
80 |
+
Need a simple and visual way to share arXiv papers on presentations, blogposts, messages?
|
81 |
+
This gradio demo allows for creating arXiv cards including arXiv identifier, title, authors, abstract
|
82 |
+
|
83 |
+
Simply paste the url link of the arXiv paper and generate!
|
84 |
+
"""
|
85 |
+
)
|
|
|
|
|
|
|
86 |
|
87 |
with gr.Column():
|
88 |
with gr.Row():
|
|
|
97 |
with gr.Row():
|
98 |
card = gr.HTML(elem_id="htel")
|
99 |
|
100 |
+
with gr.Column():
|
101 |
+
gr.Markdown(
|
102 |
+
"""
|
103 |
+
## Resources and inspirations
|
104 |
+
- [https://github.com/kunalghosh/Conference-Grok](https://github.com/kunalghosh/Conference-Grok)
|
105 |
+
"""
|
106 |
+
)
|
107 |
button.click(
|
108 |
fn=create_html_card,
|
109 |
inputs=[text],
|