Explorar el Código

change test env from get to post

ming hace 3 años
padre
commit
bdfc0815d3
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      api/main.py

+ 2 - 1
api/main.py

@@ -691,7 +691,8 @@ class text_in(BaseModel):
 async def make_voice(in_text:text_in):
     print(in_text.text)
     print(len(in_text.text))
-    x = threading.Thread(target=call_voice, args=(in_text.text))
+    print(type(in_text.text))
+    x = threading.Thread(target=call_voice, args=(strin_text.text,))
     x.start()