fruitpicker01 commited on
Commit
0372ae4
·
verified ·
1 Parent(s): 0062f1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -588,6 +588,8 @@ def generate_personalized_sms_wrapper(selected_product, description, product_nam
588
  checks_1 = perform_checks(cut_sms_1, key_message, exceptions_dict)
589
  checks_formatted_1 = format_checks(checks_1)
590
 
 
 
591
  # Выполняем проверки sms_2
592
  cut_sms_2 = cut_message(sms_2)
593
  checks_2 = perform_checks(cut_sms_2, key_message, exceptions_dict)
@@ -595,7 +597,7 @@ def generate_personalized_sms_wrapper(selected_product, description, product_nam
595
 
596
  personalization_params = [gender, generation, psychotype, business_stage, industry, opf]
597
  save_user_request_to_github(selected_product, description, product_name, benefits, key_message, chosen_approach, personalization_params)
598
- return sms_1, sms_2, final_prompt_1, final_prompt_2, checks_formatted_1, checks_formatted_2
599
 
600
  def on_regenerate(
601
  selected_product, description, product_name, benefits, key_message,
 
588
  checks_1 = perform_checks(cut_sms_1, key_message, exceptions_dict)
589
  checks_formatted_1 = format_checks(checks_1)
590
 
591
+ yield(sms_1, sms_2, final_prompt_1, "", checks_formatted_1, "")
592
+
593
  # Выполняем проверки sms_2
594
  cut_sms_2 = cut_message(sms_2)
595
  checks_2 = perform_checks(cut_sms_2, key_message, exceptions_dict)
 
597
 
598
  personalization_params = [gender, generation, psychotype, business_stage, industry, opf]
599
  save_user_request_to_github(selected_product, description, product_name, benefits, key_message, chosen_approach, personalization_params)
600
+ yield(sms_1, sms_2, final_prompt_1, final_prompt_2, checks_formatted_1, checks_formatted_2)
601
 
602
  def on_regenerate(
603
  selected_product, description, product_name, benefits, key_message,