Mathbot

Created with FastAPI

To make a request with python


import requests

requests.post(
    url='https://cetinca-fastapi-ep.hf.space/sentiment-analysis',
    json={"content": "I reject it"}
    ).json()

requests.post(
    url='https://cetinca-fastapi-ep.hf.space/text2int',
    json={"content": "forty two"}
    ).json()

To make a request with curl


curl --silent -X POST "https://cetinca-fastapi-ep.hf.space/sentiment-analysis" -H 'Content-Type: application/json' -d '{"content":"I am happy with it!"}'

curl --silent -X POST "https://cetinca-fastapi-ep.hf.space/text2int" -H 'Content-Type: application/json' -d '{"content":"forty two"}'