Spaces:
Paused
Paused
Carlos Rosas
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -215,17 +215,19 @@ demo = gr.Blocks(css=css + """
|
|
215 |
.logo {
|
216 |
display: block;
|
217 |
margin: 0 auto;
|
218 |
-
width: 200px;
|
219 |
-
height: 200px;
|
220 |
margin-bottom: 1em;
|
|
|
221 |
}
|
222 |
""")
|
223 |
|
224 |
with demo:
|
225 |
-
# Add logo and title
|
226 |
gr.HTML("""
|
227 |
-
<
|
228 |
-
|
|
|
|
|
229 |
""")
|
230 |
with gr.Row():
|
231 |
with gr.Column(scale=2):
|
@@ -240,4 +242,7 @@ with demo:
|
|
240 |
|
241 |
# Launch the app
|
242 |
if __name__ == "__main__":
|
243 |
-
demo.launch(
|
|
|
|
|
|
|
|
215 |
.logo {
|
216 |
display: block;
|
217 |
margin: 0 auto;
|
218 |
+
width: 200px;
|
219 |
+
height: 200px;
|
220 |
margin-bottom: 1em;
|
221 |
+
object-fit: contain;
|
222 |
}
|
223 |
""")
|
224 |
|
225 |
with demo:
|
|
|
226 |
gr.HTML("""
|
227 |
+
<div style="text-align: center;">
|
228 |
+
<img src="file/pleias.png" class="logo" alt="Pleias Logo">
|
229 |
+
<h1>Cassandre</h1>
|
230 |
+
</div>
|
231 |
""")
|
232 |
with gr.Row():
|
233 |
with gr.Column(scale=2):
|
|
|
242 |
|
243 |
# Launch the app
|
244 |
if __name__ == "__main__":
|
245 |
+
demo.launch(
|
246 |
+
# Specify the directory containing static files
|
247 |
+
assets_dir=".", # This tells Gradio to look in the current directory for files
|
248 |
+
)
|