Pendrokar commited on
Commit
ba2ad2a
β€’
1 Parent(s): a65b632

full path to voice model

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -19,6 +19,12 @@ def run_xvaserver():
19
  # Wait for a moment to ensure the server starts up
20
  time.sleep(10)
21
 
 
 
 
 
 
 
22
  # Check if the server is running
23
  if xvaserver.poll() is not None:
24
  print("Web server failed to start.")
@@ -70,7 +76,7 @@ def load_model():
70
  data = {
71
  'outputs': None,
72
  'version': '3.0',
73
- 'model': 'ccby/ccby_nvidia_hifi_6670_M',
74
  'modelType': model_type,
75
  'base_lang': language,
76
  'pluginsContext': '{}',
@@ -142,12 +148,6 @@ if __name__ == "__main__":
142
  print('Starting xVAServer thread')
143
  web_server_thread.start()
144
 
145
- # load default voice model
146
- load_model()
147
-
148
- # predicted = predict('test', 1.0)
149
- # print(predicted)
150
-
151
  print('running Gradio interface')
152
  gradio_app.launch()
153
 
 
19
  # Wait for a moment to ensure the server starts up
20
  time.sleep(10)
21
 
22
+ # load default voice model
23
+ load_model()
24
+
25
+ # predicted = predict('test', 1.0)
26
+ # print(predicted)
27
+
28
  # Check if the server is running
29
  if xvaserver.poll() is not None:
30
  print("Web server failed to start.")
 
76
  data = {
77
  'outputs': None,
78
  'version': '3.0',
79
+ 'model': model_path.replace('.pt', ''),
80
  'modelType': model_type,
81
  'base_lang': language,
82
  'pluginsContext': '{}',
 
148
  print('Starting xVAServer thread')
149
  web_server_thread.start()
150
 
 
 
 
 
 
 
151
  print('running Gradio interface')
152
  gradio_app.launch()
153