Spaces:
Running
Running
Commit
·
b9897b0
1
Parent(s):
11a4df0
3.35+
Browse files
app.py
CHANGED
@@ -192,9 +192,9 @@ def process_file(uploaded_file, model_choice, translation_method='googletrans'):
|
|
192 |
# In your process_file function:
|
193 |
translator = init_translation_system(
|
194 |
model_choice=model_choice,
|
195 |
-
translation_method='auto' # Will try deep-translator first, then
|
196 |
-
l back to LLM if needed
|
197 |
)
|
|
|
198 |
# Validate required columns
|
199 |
required_columns = ['Объект', 'Заголовок', 'Выдержки из текста']
|
200 |
missing_columns = [col for col in required_columns if col not in df.columns]
|
|
|
192 |
# In your process_file function:
|
193 |
translator = init_translation_system(
|
194 |
model_choice=model_choice,
|
195 |
+
translation_method='auto' # Will try deep-translator first, then fall back to LLM if needed
|
|
|
196 |
)
|
197 |
+
|
198 |
# Validate required columns
|
199 |
required_columns = ['Объект', 'Заголовок', 'Выдержки из текста']
|
200 |
missing_columns = [col for col in required_columns if col not in df.columns]
|