File size: 257 Bytes
c5db80e |
1 2 3 4 5 6 7 8 9 10 |
import requests
import json
url = 'http://0.0.0.0:5000/api/'
data = [["baby you can drive my car"]]
headers = {'content-type': 'application/json', 'Accept-Charset': 'UTF-8'}
r = requests.post(url, json={'lyric':data,}, headers=headers)
print(r, r.json())
|