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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -99,7 +99,7 @@ class pleiasBot:
99
  answer = parts[1].replace("<|answer_start|>", "").replace("<|answer_end|>", "").strip()
100
 
101
  # Format with section titles using strong tags for extra emphasis
102
- formatted_text = f'<div class="section-title"><strong>Sources Analysis</strong></div>\n\n{analysis}\n\n<div class="section-title"><strong>Answer</strong></div>\n\n{answer}'
103
  else:
104
  formatted_text = generated_text
105
 
@@ -225,14 +225,14 @@ 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">Cassandre</h1>
229
  """)
230
  with gr.Row():
231
  with gr.Column(scale=2):
232
  text_input = gr.Textbox(label="Votre question ou votre instruction", lines=3)
233
- text_button = gr.Button("Interroger Cassandre")
234
  with gr.Column(scale=3):
235
- text_output = gr.HTML(label="La réponse de Cassandre")
236
  with gr.Row():
237
  embedding_output = gr.HTML(label="Les sources utilisées")
238
 
 
99
  answer = parts[1].replace("<|answer_start|>", "").replace("<|answer_end|>", "").strip()
100
 
101
  # Format with section titles using strong tags for extra emphasis
102
+ formatted_text = f'<div class="section-title"><strong>Analyse des sources</strong></div>\n\n{analysis}\n\n<div class="section-title"><strong>Réponse</strong></div>\n\n{answer}'
103
  else:
104
  formatted_text = generated_text
105
 
 
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):
232
  text_input = gr.Textbox(label="Votre question ou votre instruction", lines=3)
233
+ text_button = gr.Button("Interroger pleias-RAG")
234
  with gr.Column(scale=3):
235
+ text_output = gr.HTML(label="La réponse du modèle")
236
  with gr.Row():
237
  embedding_output = gr.HTML(label="Les sources utilisées")
238