Spaces:
Running
Running
Update app/webui/process.py
Browse files- app/webui/process.py +3 -0
app/webui/process.py
CHANGED
@@ -6,8 +6,11 @@ from app.webui.patch import model_load,num_tokens_in_string,one_chunk_initial_tr
|
|
6 |
from app.webui.patch import calculate_chunk_size, multichunk_initial_translation, multichunk_reflect_on_translation, multichunk_improve_translation
|
7 |
|
8 |
from llama_index.core.node_parser import SentenceSplitter
|
|
|
9 |
from translatepy.exceptions import UnknownLanguage
|
10 |
from translatepy.translators.google import GoogleTranslate
|
|
|
|
|
11 |
gtranslate = GoogleTranslate()
|
12 |
|
13 |
progress=gr.Progress()
|
|
|
6 |
from app.webui.patch import calculate_chunk_size, multichunk_initial_translation, multichunk_reflect_on_translation, multichunk_improve_translation
|
7 |
|
8 |
from llama_index.core.node_parser import SentenceSplitter
|
9 |
+
|
10 |
from translatepy.exceptions import UnknownLanguage
|
11 |
from translatepy.translators.google import GoogleTranslate
|
12 |
+
from translatepy import Language
|
13 |
+
|
14 |
gtranslate = GoogleTranslate()
|
15 |
|
16 |
progress=gr.Progress()
|