Spaces:
Sleeping
Sleeping
fruitpicker01
commited on
Update app.py
Browse files
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
|