Carlos Rosas commited on
Commit
77052a4
·
verified ·
1 Parent(s): cb88a6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -15
app.py CHANGED
@@ -211,24 +211,12 @@ def gradio_interface(user_message):
211
  return response, sources
212
 
213
  # Create Gradio app
214
- 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
-
225
 
226
  with demo:
227
  # Add logo and title
228
- gr.HTML("""
229
- <img src="pleias.png" class="logo" alt="Pleias Logo">
230
- <h1 style="text-align:center">pleias-RAG 1.0</h1>
231
- """)
232
  with gr.Row():
233
  with gr.Column(scale=2):
234
  text_input = gr.Textbox(label="Votre question ou votre instruction", lines=3)
 
211
  return response, sources
212
 
213
  # Create Gradio app
214
+ demo = gr.Blocks(css=css)
 
 
 
 
 
 
 
 
 
 
215
 
216
  with demo:
217
  # Add logo and title
218
+ gr.Image("pleias.png", show_label=False, container=False, height=200, width=200)
219
+ gr.HTML("""<h1 style="text-align:center">pleias-RAG 1.0</h1>""")
 
 
220
  with gr.Row():
221
  with gr.Column(scale=2):
222
  text_input = gr.Textbox(label="Votre question ou votre instruction", lines=3)