hume-python-sdk
hume-python-sdk copied to clipboard
Issue with uploading file using API call with Python
I am using the code provided to upload a file on dev.hume.ai, on using the UI I am able to successfully upload a file, but on copying the same code and executing it in Google colab returns Error:500.
Code: import requests
Upload file (POST /files/upload)
response = requests.post( "https://api.hume.ai/v0/registry/files/upload", headers={ "X-Hume-Api-Key": apikey, "Content-Type": "multipart/form-data" }, files={ 'file': ('test_video.mp4', open('/content/test_video.mp4', 'rb')), }, ) print(response.json())
Entire error: {'timestamp': '2024-04-17T10:20:33.523+00:00', 'status': 500, 'error': 'Internal Server Error', 'path': '/files/upload'}