next-playground commited on
Commit
6316aee
1 Parent(s): 42c635f

Update flask_api_full_song.py

Browse files
Files changed (1) hide show
  1. flask_api_full_song.py +2 -0
flask_api_full_song.py CHANGED
@@ -10,6 +10,7 @@ import requests
10
  import os
11
  import uuid
12
  import threading
 
13
  from qcloud_cos import CosConfig
14
  from qcloud_cos import CosS3Client
15
 
@@ -98,6 +99,7 @@ def infer(audio_path, tran, spk, wav_format, task_id):
98
  "url": result_audio_url,
99
  }
100
  except Exception as e:
 
101
  tasks[task_id] = {
102
  "status": "error",
103
  "message": str(e)
 
10
  import os
11
  import uuid
12
  import threading
13
+ import traceback
14
  from qcloud_cos import CosConfig
15
  from qcloud_cos import CosS3Client
16
 
 
99
  "url": result_audio_url,
100
  }
101
  except Exception as e:
102
+ traceback.print_exc()
103
  tasks[task_id] = {
104
  "status": "error",
105
  "message": str(e)