cog
cog copied to clipboard
Fix training api call failed because of mix use of async and sync func
as 1808 described:
because of training endpoint of fastapi is define as sync and in the sync function a async func is called. Something wrong happened. The curl test command failed of internal server error.