Spaces:
Running
Running
Change background
Browse files
app.py
CHANGED
@@ -96,6 +96,7 @@ def send_prompt(prompt: str) -> Tuple[List, List, str, str, bool, bool, bool, bo
|
|
96 |
)
|
97 |
css = """
|
98 |
.logo {max-width: 200px !important; widht: 300px;}
|
|
|
99 |
"""
|
100 |
|
101 |
js = """
|
@@ -135,37 +136,37 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
135 |
<p style="text-align: center; margin-top: 20px; font-size: 35px;">
|
136 |
🌿 <strong>¡Hagamos la IA más sostenible juntos!</strong> 🚀♻️
|
137 |
</p>
|
138 |
-
<div style="flex-wrap: wrap;
|
139 |
-
<div style="margin:2px; background-color
|
140 |
<img class="logo" src='/gradio_api/file=static/cotec.png'>
|
141 |
</div>
|
142 |
-
<div style="margin:2px;background-color
|
143 |
<img class="logo" src='/gradio_api/file=static/upm.png'>
|
144 |
</div>
|
145 |
-
<div style="margin:2px;background-color
|
146 |
<img class="logo" src='/gradio_api/file=static/etsit.png'>
|
147 |
</div>
|
148 |
</div>
|
149 |
|
150 |
</div>
|
151 |
|
152 |
-
""")
|
153 |
with gr.Column(visible=False) as app:
|
154 |
buttons = [None] * 2 # Initialize the list with None elements
|
155 |
with gr.Group(elem_classes="container"):
|
156 |
gr.HTML("""
|
157 |
<div style="flex-wrap: wrap; width: 100%; display:flex; flex-direction: row; justify-content:center; align-items:stretch;" >
|
158 |
-
<div style="margin:2px;
|
159 |
<img class="logo" src='/gradio_api/file=static/cotec.png'>
|
160 |
</div>
|
161 |
-
<div style="margin:2px;
|
162 |
<img class="logo" src='/gradio_api/file=static/upm.png'>
|
163 |
</div>
|
164 |
-
<div style="margin:2px;
|
165 |
<img class="logo" src='/gradio_api/file=static/etsit.png'>
|
166 |
</div>
|
167 |
</div>
|
168 |
-
""")
|
169 |
gr.Image("static/logo.jpg", elem_id="centered", show_label=False)
|
170 |
with gr.Row(visible=False) as model_consumption_row:
|
171 |
consumption_text = gr.Textbox(label="Consumo: ", visible=True, interactive=False)
|
@@ -265,7 +266,7 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
265 |
|
266 |
# Project Description
|
267 |
gr.HTML("""
|
268 |
-
<div style="padding: 20px; font-size: 18px;">
|
269 |
<h2 style="font-size: 30px;">🌱 Sobre Este Proyecto</h2>
|
270 |
<p>Este espacio es parte del proyecto <strong>"Sostenibilidad Generativa"</strong> 🌍, desarrollado en la Escuela Técnica Superior de Ingenieros de Telecomunicación de la Universidad Politécnica de Madrid y financiado por la <strong>Fundación Cotec</strong>. Nuestro objetivo es evaluar cómo la <strong>conciencia energética</strong> ⚡ impacta la evaluación de los usuarios sobre los <strong>Modelos de Lenguaje de Gran Escala (LLMs)</strong>.</p>
|
271 |
|
@@ -290,18 +291,18 @@ with gr.Blocks(css=css, js=js) as demo:
|
|
290 |
</div>
|
291 |
""")
|
292 |
gr.HTML("""
|
293 |
-
<div style="flex-wrap: wrap; width: 100%; display:flex; flex-direction: row; justify-content:center; align-items:stretch;" >
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
</div>
|
304 |
-
""")
|
305 |
|
306 |
start_button = gr.Button(value="Start", visible=True, interactive=True, size= "lg",elem_id="start", variant="primary")
|
307 |
start_button.click(
|
|
|
96 |
)
|
97 |
css = """
|
98 |
.logo {max-width: 200px !important; widht: 300px;}
|
99 |
+
.myElemento { background-color:#E8E9E3; border-color:#E8E9E3; }
|
100 |
"""
|
101 |
|
102 |
js = """
|
|
|
136 |
<p style="text-align: center; margin-top: 20px; font-size: 35px;">
|
137 |
🌿 <strong>¡Hagamos la IA más sostenible juntos!</strong> 🚀♻️
|
138 |
</p>
|
139 |
+
<div style="flex-wrap: wrap; width: 100%; display:flex; flex-direction: row; justify-content:center; align-items:stretch;" >
|
140 |
+
<div style="margin:2px; background-color:#e4e4e7; display:flex; border-radius:4px; flex-direction:row; align-items:center" >
|
141 |
<img class="logo" src='/gradio_api/file=static/cotec.png'>
|
142 |
</div>
|
143 |
+
<div style="margin:2px;background-color:#e4e4e7; display:flex; border-radius:4px;flex-direction:row; align-items:center" >
|
144 |
<img class="logo" src='/gradio_api/file=static/upm.png'>
|
145 |
</div>
|
146 |
+
<div style="margin:2px;background-color:#e4e4e7; display:flex; border-radius:4px;flex-direction:row; align-items:center" >
|
147 |
<img class="logo" src='/gradio_api/file=static/etsit.png'>
|
148 |
</div>
|
149 |
</div>
|
150 |
|
151 |
</div>
|
152 |
|
153 |
+
""", )
|
154 |
with gr.Column(visible=False) as app:
|
155 |
buttons = [None] * 2 # Initialize the list with None elements
|
156 |
with gr.Group(elem_classes="container"):
|
157 |
gr.HTML("""
|
158 |
<div style="flex-wrap: wrap; width: 100%; display:flex; flex-direction: row; justify-content:center; align-items:stretch;" >
|
159 |
+
<div style="margin:2px; display:flex; border-radius:4px; flex-direction:row; align-items:center" >
|
160 |
<img class="logo" src='/gradio_api/file=static/cotec.png'>
|
161 |
</div>
|
162 |
+
<div style="margin:2px;display:flex; border-radius:4px;flex-direction:row; align-items:center" >
|
163 |
<img class="logo" src='/gradio_api/file=static/upm.png'>
|
164 |
</div>
|
165 |
+
<div style="margin:2px;display:flex; border-radius:4px;flex-direction:row; align-items:center" >
|
166 |
<img class="logo" src='/gradio_api/file=static/etsit.png'>
|
167 |
</div>
|
168 |
</div>
|
169 |
+
""", elem_classes="myElemento")
|
170 |
gr.Image("static/logo.jpg", elem_id="centered", show_label=False)
|
171 |
with gr.Row(visible=False) as model_consumption_row:
|
172 |
consumption_text = gr.Textbox(label="Consumo: ", visible=True, interactive=False)
|
|
|
266 |
|
267 |
# Project Description
|
268 |
gr.HTML("""
|
269 |
+
<div style="padding: 20px; font-size: 18px;border-color:#E8E9E3 ">
|
270 |
<h2 style="font-size: 30px;">🌱 Sobre Este Proyecto</h2>
|
271 |
<p>Este espacio es parte del proyecto <strong>"Sostenibilidad Generativa"</strong> 🌍, desarrollado en la Escuela Técnica Superior de Ingenieros de Telecomunicación de la Universidad Politécnica de Madrid y financiado por la <strong>Fundación Cotec</strong>. Nuestro objetivo es evaluar cómo la <strong>conciencia energética</strong> ⚡ impacta la evaluación de los usuarios sobre los <strong>Modelos de Lenguaje de Gran Escala (LLMs)</strong>.</p>
|
272 |
|
|
|
291 |
</div>
|
292 |
""")
|
293 |
gr.HTML("""
|
294 |
+
<div style="flex-wrap: wrap; background-color:#E8E9E3; width: 100%; display:flex; flex-direction: row; justify-content:center; align-items:stretch;" >
|
295 |
+
<div style="margin:2px; background-color:#E8E9E3; display:flex; border-radius:4px; flex-direction:row; align-items:center" >
|
296 |
+
<img class="logo" src='/gradio_api/file=static/cotec.png'>
|
297 |
+
</div>
|
298 |
+
<div style="margin:2px; background-color:#E8E9E3; display:flex; border-radius:4px;flex-direction:row; align-items:center" >
|
299 |
+
<img class="logo" src='/gradio_api/file=static/upm.png'>
|
300 |
+
</div>
|
301 |
+
<div style="margin:2px; background-color:#E8E9E3; display:flex; border-radius:4px;flex-direction:row; align-items:center" >
|
302 |
+
<img class="logo" src='/gradio_api/file=static/etsit.png'>
|
303 |
+
</div>
|
304 |
</div>
|
305 |
+
""", )
|
306 |
|
307 |
start_button = gr.Button(value="Start", visible=True, interactive=True, size= "lg",elem_id="start", variant="primary")
|
308 |
start_button.click(
|