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

Update src/covergen.py

Browse files
Files changed (1) hide show
  1. src/covergen.py +2 -1
src/covergen.py CHANGED
@@ -15,6 +15,7 @@ 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
 
19
 
20
  if __name__ == '__main__':
@@ -193,7 +194,7 @@ 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
- with open('translations.json', 'r', encoding='utf-8') as f:
197
  translations = json.load(f)
198
 
199
  app.translate_js(translations)
 
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
  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)