mirror of
https://github.com/wassname/IndicoIo-python.git
synced 2026-07-11 00:40:35 +08:00
13 lines
297 B
Python
13 lines
297 B
Python
import json
|
|
|
|
import requests
|
|
import numpy as np
|
|
from indicoio import JSON_HEADERS
|
|
|
|
base_url = "http://api.indico.io/fer"
|
|
|
|
def fer(face):
|
|
data_dict = json.dumps({"face": face})
|
|
response = requests.post(base_url, data=data_dict, headers=JSON_HEADERS)
|
|
return json.loads(response.content)
|