Spaces:
Running
Running
Update src/covergen.py
Browse files- src/covergen.py +5 -0
src/covergen.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
import shutil
|
3 |
import urllib.request
|
4 |
import zipfile
|
@@ -192,4 +193,8 @@ if __name__ == '__main__':
|
|
192 |
local_upload_output_message = gr.Text(label='Сообщение вывода', interactive=False)
|
193 |
model_upload_button.click(upload_zip_model, inputs=[zip_file, local_model_name], outputs=local_upload_output_message)
|
194 |
|
|
|
|
|
|
|
|
|
195 |
app.launch(max_threads=512, quiet=True, show_error=True, show_api=False).queue(max_size=1022, default_concurrency_limit=1, api_open=False)
|
|
|
1 |
import os
|
2 |
+
import json
|
3 |
import shutil
|
4 |
import urllib.request
|
5 |
import zipfile
|
|
|
193 |
local_upload_output_message = gr.Text(label='Сообщение вывода', interactive=False)
|
194 |
model_upload_button.click(upload_zip_model, inputs=[zip_file, local_model_name], outputs=local_upload_output_message)
|
195 |
|
196 |
+
with open('translations.json', 'r', encoding='utf-8') as f:
|
197 |
+
translations = json.load(f)
|
198 |
+
|
199 |
+
app.translate_js(translations)
|
200 |
app.launch(max_threads=512, quiet=True, show_error=True, show_api=False).queue(max_size=1022, default_concurrency_limit=1, api_open=False)
|