CoolFace
Apppublic

Hobson/mathtext-fastapi

sourceHugging Faceagpl-3.0updated 3y agoView on Hugging Face
1likes
home.html36 linesDownload Raw Back to templates
1<!DOCTYPE html>2<html lang="en">3<head>4    <meta charset="UTF-8">5    <title>Title</title>6    <link rel="stylesheet" href="{{ url_for('static', path='/styles.css') }}">7</head>8<body>9<h2>Mathbot</h2>10<h3>Created with FastAPI</h3>11 12<h4>To make a request with python</h4>13<pre><code>14import requests15 16requests.post(17    url='https://tangibleai-mathtext-fastapi.hf.space/sentiment-analysis',18    json={"content": "I reject it"}19    ).json()20 21requests.post(22    url='https://tangibleai-mathtext-fastapi.hf.space/text2int',23    json={"content": "forty two"}24    ).json()25 26</code></pre>27 28<h4>To make a request with curl</h4>29<pre><code>30curl --silent -X POST "https://tangibleai-mathtext-fastapi.hf.space/sentiment-analysis" -H 'Content-Type: application/json' -d '{"content":"I am happy with it!"}'31 32curl --silent -X POST "https://tangibleai-mathtext-fastapi.hf.space/text2int" -H 'Content-Type: application/json' -d '{"content":"forty two"}'33</code></pre>34</body>35</html>36