Pendrokar commited on
Commit
d62b819
β€’
1 Parent(s): 86930e3

plugins.txt copy; xvaserver response

Browse files
Files changed (2) hide show
  1. app.py +2 -2
  2. plugins.txt +1 -0
app.py CHANGED
@@ -154,7 +154,7 @@ def load_model(voice_model_name):
154
 
155
  print('Loading voice model...')
156
  try:
157
- xvaserver.loadModel(data)
158
  # response = requests.post('http://0.0.0.0:8008/loadModel', json=data, timeout=60)
159
  # response.raise_for_status() # If the response contains an HTTP error status code, raise an exception
160
  current_voice_model = voice_model_name
@@ -220,7 +220,7 @@ def predict(
220
 
221
  print('Synthesizing...')
222
  try:
223
- xvaserver.synthesize(data)
224
  # response = requests.post('http://0.0.0.0:8008/synthesize', json=data, timeout=60)
225
  # response.raise_for_status() # If the response contains an HTTP error status code, raise an exception
226
  # json_data = json.loads(response.text)
 
154
 
155
  print('Loading voice model...')
156
  try:
157
+ response = xvaserver.loadModel(data)
158
  # response = requests.post('http://0.0.0.0:8008/loadModel', json=data, timeout=60)
159
  # response.raise_for_status() # If the response contains an HTTP error status code, raise an exception
160
  current_voice_model = voice_model_name
 
220
 
221
  print('Synthesizing...')
222
  try:
223
+ response = xvaserver.synthesize(data)
224
  # response = requests.post('http://0.0.0.0:8008/synthesize', json=data, timeout=60)
225
  # response.raise_for_status() # If the response contains an HTTP error status code, raise an exception
226
  # json_data = json.loads(response.text)
plugins.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ *deepmoji_plugin