|
@@ -35,11 +35,11 @@ async def genAvatar_uploadmp3(file: UploadFile = File(...)):
|
|
|
file_object.write(file.file.read())
|
|
|
|
|
|
|
|
|
- x = threading.Thread(target=makeAvatar, args=(name_hash))
|
|
|
+ x = threading.Thread(target=makeAvatar, args=(name_hash,17))
|
|
|
x.start()
|
|
|
return {'msg':'ok'}
|
|
|
|
|
|
-def makeAvatar(name_hash):
|
|
|
+def makeAvatar(name_hash,avatar):
|
|
|
call_anchor(name_hash,17)
|
|
|
notify_choozmo('avatar at www.choozmo.com:8168/tools/'+name_hash+'.mp4')
|
|
|
os.remove(dir_sound+name_hash+".mp3")
|