DinoFrog commited on
Commit
78d147f
·
verified ·
1 Parent(s): e5b4007

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -82,7 +82,8 @@ def create_sentiment_gauge(sentiment, score):
82
  # Fonction d'analyse corrigée
83
  async def full_analysis(text, mode, detail_mode, count, history):
84
  if not text:
85
- return "Entrez une phrase.", "", "", 0, history, None, ""
 
86
 
87
  # Message de progression
88
  yield "Analyse en cours... (Étape 1 : Détection de la langue)", "", "", count, history, None, ""
@@ -135,7 +136,7 @@ Assume the event happens (e.g., if the question is "Will the Federal Reserve rai
135
  "Explication_FR": explanation_fr
136
  })
137
 
138
- return sentiment_output, explanation_en, explanation_fr, count, history, sentiment_gauge, ""
139
 
140
  # Fonction pour télécharger historique CSV
141
  def download_history(history):
 
82
  # Fonction d'analyse corrigée
83
  async def full_analysis(text, mode, detail_mode, count, history):
84
  if not text:
85
+ yield "Entrez une phrase.", "", "", 0, history, None, ""
86
+ return
87
 
88
  # Message de progression
89
  yield "Analyse en cours... (Étape 1 : Détection de la langue)", "", "", count, history, None, ""
 
136
  "Explication_FR": explanation_fr
137
  })
138
 
139
+ yield sentiment_output, explanation_en, explanation_fr, count, history, sentiment_gauge, ""
140
 
141
  # Fonction pour télécharger historique CSV
142
  def download_history(history):