Spaces:
Runtime error
Runtime error
Download templates/home.html from TangibleAI/mathtext-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 971 Bytes
-
https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/main/templates/home.html
- Command line
-
hf download hf://spaces/TangibleAI/mathtext-fastapi/templates/home.html
-
curl -L -o home.html https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/main/templates/home.html
971 Bytes
| <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> | |