File size: 971 Bytes
7ff1fe0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
467a49f
7ff1fe0
 
 
 
467a49f
7ff1fe0
 
 
 
 
 
 
467a49f
7ff1fe0
467a49f
7ff1fe0
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="{{ url_for('static', path='/styles.css') }}">
</head>
<body>
<h2>Mathbot</h2>
<h3>Created with FastAPI</h3>

<h4>To make a request with python</h4>
<pre><code>
import requests

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

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

</code></pre>

<h4>To make a request with curl</h4>
<pre><code>
curl --silent -X POST "https://tangibleai-mathtext-fastapi.hf.space/sentiment-analysis" -H 'Content-Type: application/json' -d '{"content":"I am happy with it!"}'

curl --silent -X POST "https://tangibleai-mathtext-fastapi.hf.space/text2int" -H 'Content-Type: application/json' -d '{"content":"forty two"}'
</code></pre>
</body>
</html>