Carlos Rosas commited on
Commit
c83041a
·
verified ·
1 Parent(s): d6a0a69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -6
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
- <img src="pleias.png" class="logo" alt="Pleias Logo">
228
- <h1 style="text-align:center">pleias-RAG 1.0</h1>
 
 
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
+ )