Moguiy commited on
Commit
a18c112
·
verified ·
1 Parent(s): 62317bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -688,6 +688,11 @@ with gr.Blocks(theme=gr.themes.Citrus()) as demo:
688
  product_related_activities, pain_points, product_goals, persona_image_output
689
  ):
690
  summary = ""
 
 
 
 
 
691
  image = None
692
  if persona_image_output and os.path.exists(persona_image_output):
693
  try:
 
688
  product_related_activities, pain_points, product_goals, persona_image_output
689
  ):
690
  summary = ""
691
+
692
+ if not first_name or not last_name or not age:
693
+ summary += "**Veuillez fournir les informations de base du persona (prénom, nom, âge).**\n\n"
694
+ return summary
695
+
696
  image = None
697
  if persona_image_output and os.path.exists(persona_image_output):
698
  try: