Spaces:
Running
on
Zero
Running
on
Zero
app.py
CHANGED
@@ -203,13 +203,6 @@ def generate(paper_text, review_template):
|
|
203 |
|
204 |
|
205 |
# ui
|
206 |
-
css = """
|
207 |
-
#warning {background: red;}
|
208 |
-
|
209 |
-
.button {background-color: #8C1B13 !important; color: white !important;}
|
210 |
-
"""
|
211 |
-
# .gradio-container {background-color: #FFFDFA !important;}
|
212 |
-
# .title {background-color: #FFFDFA !important;}
|
213 |
#8C1B13 red
|
214 |
#4D8093 blue
|
215 |
#767676 med grey
|
@@ -217,7 +210,18 @@ css = """
|
|
217 |
#DDDDDD silver below red
|
218 |
#FFFDFA white
|
219 |
|
220 |
-
title = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
title_icons = """<div style="text-align: center; display: flex; justify-content: left; gap: 5px;">
|
222 |
<a href="https://huggingface.co/maxidl/Llama-OpenReviewer-8B""><img src="https://img.shields.io/badge/🤗-Model-ffbd45.svg" alt="HuggingFace"></a>
|
223 |
</div>
|
@@ -239,8 +243,8 @@ description = """This is an online demo of the `Llama-OpenReviewer-8B` model, wh
|
|
239 |
"""
|
240 |
|
241 |
theme = gr.themes.Default(primary_hue="gray", secondary_hue="blue", neutral_hue="slate")
|
242 |
-
with gr.Blocks(theme=theme
|
243 |
-
title = gr.
|
244 |
title_icons = gr.Markdown(title_icons)
|
245 |
description = gr.Markdown(description)
|
246 |
instr = gr.Markdown("Upload your paper in pdf format")
|
|
|
203 |
|
204 |
|
205 |
# ui
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
#8C1B13 red
|
207 |
#4D8093 blue
|
208 |
#767676 med grey
|
|
|
210 |
#DDDDDD silver below red
|
211 |
#FFFDFA white
|
212 |
|
213 |
+
title = """<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
214 |
+
<div
|
215 |
+
style="
|
216 |
+
display: inline-flex; align-items: center; gap: 0.8rem; font-size: 1.75rem;
|
217 |
+
"
|
218 |
+
>
|
219 |
+
<h1 style="font-weight: 900; margin-bottom: 7px; line-height: normal;">
|
220 |
+
OpenReviewer
|
221 |
+
</h1>
|
222 |
+
</div>
|
223 |
+
</div>
|
224 |
+
"""
|
225 |
title_icons = """<div style="text-align: center; display: flex; justify-content: left; gap: 5px;">
|
226 |
<a href="https://huggingface.co/maxidl/Llama-OpenReviewer-8B""><img src="https://img.shields.io/badge/🤗-Model-ffbd45.svg" alt="HuggingFace"></a>
|
227 |
</div>
|
|
|
243 |
"""
|
244 |
|
245 |
theme = gr.themes.Default(primary_hue="gray", secondary_hue="blue", neutral_hue="slate")
|
246 |
+
with gr.Blocks(theme=theme) as demo:
|
247 |
+
title = gr.HTML(title + title_icons)
|
248 |
title_icons = gr.Markdown(title_icons)
|
249 |
description = gr.Markdown(description)
|
250 |
instr = gr.Markdown("Upload your paper in pdf format")
|