Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ovuruska/cf36219f7341b7a78ffbc2032d16a953 to your computer and use it in GitHub Desktop.
Save ovuruska/cf36219f7341b7a78ffbc2032d16a953 to your computer and use it in GitHub Desktop.
Debug example
import requests
url = "http://localhost:8000/debug"
video_path = '/D:/Desktop/dog_action_dataset/videos/actions/sit/sit_6.mp4'
payload={}
files=[
('file',('sit_6.mp4',open(video_path,'rb'),'application/octet-stream'))
]
headers = {}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment