Download templates/index.html from Swathi6/Project: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/Swathi6/Project/resolve/main/templates/index.html
- Command line
-
hf download hf://spaces/Swathi6/Project/templates/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Swathi6/Project/resolve/main/templates/index.html
688 Bytes
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Hugging Face Sentiment App</title> | |
| <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1>Sentiment Analysis</h1> | |
| <form method="POST"> | |
| <textarea name="text" placeholder="Enter text here..."></textarea> | |
| <button type="submit">Analyze</button> | |
| </form> | |
| {% if result %} | |
| <div class="result"> | |
| <strong>Label:</strong> {{ result.label }}<br> | |
| <strong>Score:</strong> {{ result.score | round(2) }} | |
| </div> | |
| {% endif %} | |
| </div> | |
| </body> | |
| </html> | |