XuminYu commited on
Commit
40bc41b
1 Parent(s): 451de3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -131,7 +131,7 @@ def predict(prompt, style, audio_file_pth, agree):
131
  None,
132
  )
133
  else:
134
- decoded_bytes = base64.b64decode(json_data['result']['base64'])
135
  with open(save_path, 'wb') as f:
136
  f.write(decoded_bytes)
137
 
 
131
  None,
132
  )
133
  else:
134
+ decoded_bytes = base64.b64decode(json_data['result']['base64'].encode('utf-8'))
135
  with open(save_path, 'wb') as f:
136
  f.write(decoded_bytes)
137