Politrees commited on
Commit
c28b939
1 Parent(s): e8a8d79

Update src/covergen.py

Browse files
Files changed (1) hide show
  1. src/covergen.py +0 -5
src/covergen.py CHANGED
@@ -15,7 +15,6 @@ from modules.file_processing import process_file_upload
15
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
  rvc_models_dir = os.path.join(BASE_DIR, 'rvc_models')
17
  output_dir = os.path.join(BASE_DIR, 'song_output')
18
- translation = os.path.join(BASE_DIR, 'src', 'translations.json')
19
 
20
 
21
  if __name__ == '__main__':
@@ -194,8 +193,4 @@ if __name__ == '__main__':
194
  local_upload_output_message = gr.Text(label='Сообщение вывода', interactive=False)
195
  model_upload_button.click(upload_zip_model, inputs=[zip_file, local_model_name], outputs=local_upload_output_message)
196
 
197
- with open(translation, 'r', encoding='utf-8') as f:
198
- translations = json.load(f)
199
-
200
- app.translate_js(translations)
201
  app.launch(max_threads=512, quiet=True, show_error=True, show_api=False).queue(max_size=1022, default_concurrency_limit=1, api_open=False)
 
15
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
16
  rvc_models_dir = os.path.join(BASE_DIR, 'rvc_models')
17
  output_dir = os.path.join(BASE_DIR, 'song_output')
 
18
 
19
 
20
  if __name__ == '__main__':
 
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
  app.launch(max_threads=512, quiet=True, show_error=True, show_api=False).queue(max_size=1022, default_concurrency_limit=1, api_open=False)