Spaces:
Running
Running
Commit
·
d029b07
1
Parent(s):
3cdf7eb
3.70+
Browse files
app.py
CHANGED
@@ -996,13 +996,13 @@ def process_file(uploaded_file, model_choice, translation_method=None):
|
|
996 |
try:
|
997 |
# Initialize Groq LLM if not already done
|
998 |
if 'groq_llm' not in locals():
|
999 |
-
|
1000 |
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
|
1007 |
except Exception as e:
|
1008 |
impact = "Неопределенный эффект"
|
|
|
996 |
try:
|
997 |
# Initialize Groq LLM if not already done
|
998 |
if 'groq_llm' not in locals():
|
999 |
+
groq_llm = ensure_groq_llm()
|
1000 |
|
1001 |
+
impact, reasoning = estimate_impact(
|
1002 |
+
groq_llm if groq_llm is not None else llm,
|
1003 |
+
translated_text,
|
1004 |
+
row['Объект']
|
1005 |
+
)
|
1006 |
|
1007 |
except Exception as e:
|
1008 |
impact = "Неопределенный эффект"
|