fruitpicker01 commited on
Commit
0643964
·
verified ·
1 Parent(s): cc8b6ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -577,7 +577,7 @@ def generate_personalized_sms_wrapper(selected_product, description, product_nam
577
  final_prompt_2 = generate_final_prompt_from_display(prompt_2, chosen_single_approach_2, is_prompt_1=False)
578
  print("Final Prompt 1:", final_prompt_1)
579
  print("Final Prompt 2:", final_prompt_2)
580
- sms_1 = generate_sms_with_timer(final_prompt_1, product_name)
581
 
582
  # Выполняем проверки sms_1
583
  cut_sms_1 = cut_message(sms_1)
@@ -586,7 +586,7 @@ def generate_personalized_sms_wrapper(selected_product, description, product_nam
586
 
587
  yield(sms_1, "", final_prompt_1, "", checks_formatted_1, "")
588
 
589
- sms_2 = generate_sms_with_timer(final_prompt_2, product_name)
590
 
591
  # Выполняем проверки sms_2
592
  cut_sms_2 = cut_message(sms_2)
@@ -619,8 +619,8 @@ def on_regenerate(
619
  print("Regen Final Prompt 1:", final_prompt_1)
620
  print("Regen Final Prompt 2:", final_prompt_2)
621
 
622
- sms_1 = generate_sms_with_timer(final_prompt_1, product_name)
623
- sms_2 = generate_sms_with_timer(final_prompt_2, product_name)
624
 
625
  # Проверяем заново:
626
  cut_sms_1 = cut_message(sms_1)
 
577
  final_prompt_2 = generate_final_prompt_from_display(prompt_2, chosen_single_approach_2, is_prompt_1=False)
578
  print("Final Prompt 1:", final_prompt_1)
579
  print("Final Prompt 2:", final_prompt_2)
580
+ sms_1 = generate_sms_with_timer(final_prompt_1, product_name, key_message)
581
 
582
  # Выполняем проверки sms_1
583
  cut_sms_1 = cut_message(sms_1)
 
586
 
587
  yield(sms_1, "", final_prompt_1, "", checks_formatted_1, "")
588
 
589
+ sms_2 = generate_sms_with_timer(final_prompt_2, product_name, key_message)
590
 
591
  # Выполняем проверки sms_2
592
  cut_sms_2 = cut_message(sms_2)
 
619
  print("Regen Final Prompt 1:", final_prompt_1)
620
  print("Regen Final Prompt 2:", final_prompt_2)
621
 
622
+ sms_1 = generate_sms_with_timer(final_prompt_1, product_name, key_message)
623
+ sms_2 = generate_sms_with_timer(final_prompt_2, product_name, key_message)
624
 
625
  # Проверяем заново:
626
  cut_sms_1 = cut_message(sms_1)