aCogSphere / acogsphere.py
CognitiveScience's picture
Update acogsphere.py
447f5a8
raw
history blame
251 Bytes
import requests
#print(result)
def acf(text1):
response = requests.post("https://anbohan-sentiment-analysis.hf.space/run/predict", json={
"data": [
text1,
]
}).json()
acfresult = response["data"]
return acfresult