fruitpicker01 commited on
Commit
5946a1f
·
verified ·
1 Parent(s): 37329aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -521,7 +521,7 @@ def notify_failed_checks(checks):
521
  # return last_message
522
 
523
 
524
- def generate_message_mistral_with_retry(prompt, approach_name, description, key_message):
525
  global approach_stats
526
  last_message = None
527
  for attempt in range(20):
@@ -538,7 +538,7 @@ def generate_message_mistral_with_retry(prompt, approach_name, description, key_
538
  last_message = message
539
  time.sleep(1)
540
  continue
541
- checks = perform_checks(message, description, key_message)
542
  last_message = message
543
  # Инициализируем статистику для подхода, если ее нет
544
  if approach_name not in approach_stats:
 
521
  # return last_message
522
 
523
 
524
+ def generate_message_mistral_with_retry(prompt, approach_name, description, key_message, product_name):
525
  global approach_stats
526
  last_message = None
527
  for attempt in range(20):
 
538
  last_message = message
539
  time.sleep(1)
540
  continue
541
+ checks = perform_checks(message, description, key_message, product_name)
542
  last_message = message
543
  # Инициализируем статистику для подхода, если ее нет
544
  if approach_name not in approach_stats: