Spaces:
Paused
Paused
Carlos Rosas
commited on
Update app.py
Browse files
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>
|
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">
|
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
|
234 |
with gr.Column(scale=3):
|
235 |
-
text_output = gr.HTML(label="La réponse
|
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 |
|