cetinca commited on
Commit
0d7dd8c
1 Parent(s): c10d55e

Update templates

Browse files
Files changed (2) hide show
  1. requirements.txt +1 -0
  2. templates/home.html +4 -4
requirements.txt CHANGED
@@ -9,3 +9,4 @@ spacy
9
  pandas
10
  matplotlib
11
  pytest
 
 
9
  pandas
10
  matplotlib
11
  pytest
12
+ httpx
templates/home.html CHANGED
@@ -14,12 +14,12 @@
14
  import requests
15
 
16
  requests.post(
17
- url='https://cetinca-fastapi-ep.hf.space/sentiment-analysis',
18
  json={"content": "I reject it"}
19
  ).json()
20
 
21
  requests.post(
22
- url='https://cetinca-fastapi-ep.hf.space/text2int',
23
  json={"content": "forty two"}
24
  ).json()
25
 
@@ -27,9 +27,9 @@ requests.post(
27
 
28
  <h4>To make a request with curl</h4>
29
  <pre><code>
30
- curl --silent -X POST "https://cetinca-fastapi-ep.hf.space/sentiment-analysis" -H 'Content-Type: application/json' -d '{"content":"I am happy with it!"}'
31
 
32
- curl --silent -X POST "https://cetinca-fastapi-ep.hf.space/text2int" -H 'Content-Type: application/json' -d '{"content":"forty two"}'
33
  </code></pre>
34
  </body>
35
  </html>
 
14
  import requests
15
 
16
  requests.post(
17
+ url='https://tangibleai-mathtext-fastapi.hf.space/sentiment-analysis',
18
  json={"content": "I reject it"}
19
  ).json()
20
 
21
  requests.post(
22
+ url='https://tangibleai-mathtext-fastapi.hf.space/text2int',
23
  json={"content": "forty two"}
24
  ).json()
25
 
 
27
 
28
  <h4>To make a request with curl</h4>
29
  <pre><code>
30
+ curl --silent -X POST "https://tangibleai-mathtext-fastapi.hf.space/sentiment-analysis" -H 'Content-Type: application/json' -d '{"content":"I am happy with it!"}'
31
 
32
+ curl --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>