Spaces:
Build error
Build error
Update templates
Browse files- requirements.txt +1 -0
- 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://
|
18 |
json={"content": "I reject it"}
|
19 |
).json()
|
20 |
|
21 |
requests.post(
|
22 |
-
url='https://
|
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://
|
31 |
|
32 |
-
curl --silent -X POST "https://
|
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>
|