{% extends 'base.html' %} {% block header %}

{% block title %}Documentation{% endblock %}

{% endblock %} {% block content %} When you save your model, it is hosted on our platform and ready to call through REST API. The url to send request is found on your homepage. For example if your model's REST API is like:
    REST API: curl https://inference.gypsysystem.com/restapi/tasks/1 -d data='{"sepal.length":5.1, "sepal.width":3.5, "petal.length":1.4, "petal.width":0.2, "class":1}' -d model_name="aniris" -d username=nawshin.nusrat.hasan@gmail.com -d token=3dfc34
print "Hello World"
    
import requests

data = {
    'data': '{"sepal.length":5.1, "sepal.width":3.5, "petal.length":1.4, "petal.width":0.2, "class":1}',
    'model_name': 'aniris',
    'username': 'nawshin.nusrat.hasan@gmail.com',
    'token':'3dfc34'
}

response = requests.post('https://inference.gypsysystem.com/restapi/tasks/1', data=data)
print(response.json())

{% endblock %}