Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -192,7 +192,7 @@ def display_bias_analysis_v2(analysis_result):
|
|
192 |
highlighted_data.append((overall_comment + "\n\n", "COMMENT"))
|
193 |
for bias_info in biases:
|
194 |
highlighted_data.append((f"⚠️ {bias_info.get('bias_type', 'Type inconnu')}: ", "BIAS_TYPE"))
|
195 |
-
highlighted_data.append((f"{bias_info.get('explanation', 'Pas d
|
196 |
highlighted_data.append((f"💡 Conseil: {bias_info.get('advice', 'Pas de conseil.')}\n", "ADVICE"))
|
197 |
|
198 |
# Retourne les données formatées et le résultat brut (qui est déjà un dict)
|
@@ -498,7 +498,7 @@ def generate_summary_v2(*args):
|
|
498 |
|
499 |
# --- Interface Gradio V2 (Mise à jour avec BYOK et suggestions) ---
|
500 |
|
501 |
-
with gr.Blocks(theme=gr.themes.
|
502 |
gr.Markdown("# PersonaGenAI V2 : Assistant de Création de Persona Marketing")
|
503 |
gr.Markdown("Outil d'aide à la création de personas, intégrant l'IA générative (OpenRouter ou OpenAI) pour stimuler la créativité et la réflexivité face aux biais.")
|
504 |
|
|
|
192 |
highlighted_data.append((overall_comment + "\n\n", "COMMENT"))
|
193 |
for bias_info in biases:
|
194 |
highlighted_data.append((f"⚠️ {bias_info.get('bias_type', 'Type inconnu')}: ", "BIAS_TYPE"))
|
195 |
+
highlighted_data.append((f"{bias_info.get('explanation', 'Pas d’explication.')}\n", "EXPLANATION"))
|
196 |
highlighted_data.append((f"💡 Conseil: {bias_info.get('advice', 'Pas de conseil.')}\n", "ADVICE"))
|
197 |
|
198 |
# Retourne les données formatées et le résultat brut (qui est déjà un dict)
|
|
|
498 |
|
499 |
# --- Interface Gradio V2 (Mise à jour avec BYOK et suggestions) ---
|
500 |
|
501 |
+
with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
502 |
gr.Markdown("# PersonaGenAI V2 : Assistant de Création de Persona Marketing")
|
503 |
gr.Markdown("Outil d'aide à la création de personas, intégrant l'IA générative (OpenRouter ou OpenAI) pour stimuler la créativité et la réflexivité face aux biais.")
|
504 |
|