Download templates/settings.html from 000x/sinhala-subtitle-hardcoder: direct link, hf CLI and curl.
- Browser
- Download file 1.62 kB
-
https://huggingface.co/spaces/000x/sinhala-subtitle-hardcoder/resolve/main/templates/settings.html
- Command line
-
hf download hf://spaces/000x/sinhala-subtitle-hardcoder/templates/settings.html
-
curl -L -o settings.html https://huggingface.co/spaces/000x/sinhala-subtitle-hardcoder/resolve/main/templates/settings.html
1.62 kB
| {% extends "base.html" %} | |
| {% block title %}Settings{% endblock %} | |
| {% block content %} | |
| <section class="panel"> | |
| <h1>Facebook settings</h1> | |
| {% if env_active %} | |
| <div class="notice"> | |
| 🔒 Using <code>FB_PAGE_ID</code> / <code>FB_ACCESS_TOKEN</code> environment secrets -- | |
| the fields below are read-only while both are set. Manage them from your host's | |
| secret/variable settings (e.g. a Hugging Face Space's Settings → Variables and secrets), | |
| not here. | |
| </div> | |
| {% else %} | |
| <p class="hint"> | |
| Generate a Page access token at | |
| <a href="https://developers.facebook.com/apps/" target="_blank" rel="noopener">developers.facebook.com/apps</a> | |
| (Tools → Token Generator → select your Page → check | |
| <code>publish_video</code>, <code>pages_manage_posts</code>, <code>pages_read_user_content</code>). | |
| Stored locally in this app's database. For better security, set | |
| <code>FB_PAGE_ID</code> / <code>FB_ACCESS_TOKEN</code> as environment secrets instead -- | |
| then the token is never stored here or shown in this form. | |
| </p> | |
| {% endif %} | |
| <form method="post" class="task-form"> | |
| <label> | |
| Page ID | |
| <input type="text" name="page_id" value="{{ page_id }}" placeholder="176467768887919" {% if env_active %}disabled{% endif %}> | |
| </label> | |
| <label> | |
| Page access token | |
| <input type="password" name="access_token" value="{{ access_token }}" placeholder="EAAB..." {% if env_active %}disabled{% endif %}> | |
| </label> | |
| <button type="submit" class="btn-primary" {% if env_active %}disabled{% endif %}>Save settings</button> | |
| </form> | |
| </section> | |
| {% endblock %} | |