Spaces:
Running
Running
Commit ·
7844008
1
Parent(s): 1059c86
3.40
Browse files
app.py
CHANGED
|
@@ -19,10 +19,11 @@ from jinja2 import Template
|
|
| 19 |
import time
|
| 20 |
from tenacity import retry, stop_after_attempt, wait_exponential
|
| 21 |
from typing import Optional
|
| 22 |
-
from deep_translator import GoogleTranslator
|
| 23 |
from googletrans import Translator as LegacyTranslator
|
| 24 |
|
| 25 |
|
|
|
|
| 26 |
class TranslationSystem:
|
| 27 |
def __init__(self, batch_size=5):
|
| 28 |
"""
|
|
@@ -553,7 +554,7 @@ def create_output_file(df, uploaded_file, llm):
|
|
| 553 |
return output
|
| 554 |
def main():
|
| 555 |
with st.sidebar:
|
| 556 |
-
st.title("::: AI-анализ мониторинга новостей (v.3.
|
| 557 |
st.subheader("по материалам СКАН-ИНТЕРФАКС ")
|
| 558 |
|
| 559 |
model_choice = st.radio(
|
|
|
|
| 19 |
import time
|
| 20 |
from tenacity import retry, stop_after_attempt, wait_exponential
|
| 21 |
from typing import Optional
|
| 22 |
+
from deep_translator import GoogleTranslator
|
| 23 |
from googletrans import Translator as LegacyTranslator
|
| 24 |
|
| 25 |
|
| 26 |
+
|
| 27 |
class TranslationSystem:
|
| 28 |
def __init__(self, batch_size=5):
|
| 29 |
"""
|
|
|
|
| 554 |
return output
|
| 555 |
def main():
|
| 556 |
with st.sidebar:
|
| 557 |
+
st.title("::: AI-анализ мониторинга новостей (v.3.40 ):::")
|
| 558 |
st.subheader("по материалам СКАН-ИНТЕРФАКС ")
|
| 559 |
|
| 560 |
model_choice = st.radio(
|