fruitpicker01 commited on
Commit
5bb1db0
·
verified ·
1 Parent(s): 9d2eabe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -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, product_name)
542
  last_message = message
543
  # Инициализируем статистику для подхода, если ее нет
544
  if approach_name not in approach_stats:
@@ -1530,7 +1530,7 @@ def safe_check(func, *args):
1530
  print(f"Ошибка в {func.__name__}: {e}")
1531
  return None # Indicate that the check could not be performed
1532
 
1533
- def perform_checks(message, description, key_message, product_name):
1534
  checks = {}
1535
 
1536
  # 2. Morphological checks using pymorphy3
 
538
  last_message = message
539
  time.sleep(1)
540
  continue
541
+ checks = perform_checks(message, description, key_message, product_name, advantages)
542
  last_message = message
543
  # Инициализируем статистику для подхода, если ее нет
544
  if approach_name not in approach_stats:
 
1530
  print(f"Ошибка в {func.__name__}: {e}")
1531
  return None # Indicate that the check could not be performed
1532
 
1533
+ def perform_checks(message, description, key_message, product_name, advantages):
1534
  checks = {}
1535
 
1536
  # 2. Morphological checks using pymorphy3