sriny2131 commited on
Commit
cd64ebf
Β·
verified Β·
1 Parent(s): 2d3cefa

deploy: sync from local repo

Browse files
.claude/skills/deploy-to-huggingface/SKILL.md CHANGED
@@ -86,7 +86,6 @@ Mark the deploy complete only after this returns 200. Do not trust the script's
86
 
87
  ## What the script does NOT do
88
 
89
- - Does not tear down Azure. Run `bash infra/teardown.sh` separately if migrating off paid infra.
90
  - Does not commit to GitHub. Run `git add . && git commit && git push` separately to keep GitHub in sync (HF Spaces have their own git history).
91
 
92
  ## Frontend note
 
86
 
87
  ## What the script does NOT do
88
 
 
89
  - Does not commit to GitHub. Run `git add . && git commit && git push` separately to keep GitHub in sync (HF Spaces have their own git history).
90
 
91
  ## Frontend note
HUGGINGFACE_DEPLOYMENT.md CHANGED
@@ -23,7 +23,7 @@ Hugging Face Space. Follow it top to bottom.
23
  |---|---|
24
  | HF account | <https://huggingface.co/join> β€” username `sriny2131` |
25
  | HF write token | <https://huggingface.co/settings/tokens> β†’ **New token** β†’ role **Write**. Copy the `hf_…` string somewhere safe; you cannot view it again. |
26
- | Gemini API key | <https://aistudio.google.com/app/apikey> β€” same key you used on Azure. |
27
  | Local Python | Already installed (3.12). The script auto-imports `huggingface_hub` and `requests`. |
28
 
29
  ---
@@ -102,16 +102,6 @@ The frontend already reads the Space URL from a meta tag set in
102
 
103
  If you change the Space name, update this and redeploy the frontend.
104
 
105
- ## Step 6 β€” Optional: tear down Azure
106
-
107
- Once the Space is live and you've smoke-tested it:
108
-
109
- ```bash
110
- bash infra/teardown.sh
111
- ```
112
-
113
- This deletes the entire `medishield-rg` resource group and stops billing.
114
-
115
  ---
116
 
117
  ## Manual fallback (if the script can't run)
@@ -158,7 +148,6 @@ were pasted into the chat transcript:
158
 
159
  ## What the script doesn't touch
160
 
161
- - Your Azure deployment. It keeps running until you tear it down.
162
  - Your local `.env`. The Space gets its key from HF Secrets, not from
163
  any local file.
164
  - The frontend. The Dockerfile bundles `frontend/index.html` into the
 
23
  |---|---|
24
  | HF account | <https://huggingface.co/join> β€” username `sriny2131` |
25
  | HF write token | <https://huggingface.co/settings/tokens> β†’ **New token** β†’ role **Write**. Copy the `hf_…` string somewhere safe; you cannot view it again. |
26
+ | Gemini API key | <https://aistudio.google.com/app/apikey> |
27
  | Local Python | Already installed (3.12). The script auto-imports `huggingface_hub` and `requests`. |
28
 
29
  ---
 
102
 
103
  If you change the Space name, update this and redeploy the frontend.
104
 
 
 
 
 
 
 
 
 
 
 
105
  ---
106
 
107
  ## Manual fallback (if the script can't run)
 
148
 
149
  ## What the script doesn't touch
150
 
 
151
  - Your local `.env`. The Space gets its key from HF Secrets, not from
152
  any local file.
153
  - The frontend. The Dockerfile bundles `frontend/index.html` into the
frontend/index.html CHANGED
@@ -4,7 +4,7 @@
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <!-- API base URL. Empty = same-origin β€” frontend and FastAPI are
7
- served from the same container (Azure Container Apps / HF Space). -->
8
  <meta name="api-base" content="" />
9
  <title>MediShield Document Classifier</title>
10
  <style>
 
4
  <meta charset="UTF-8" />
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
  <!-- API base URL. Empty = same-origin β€” frontend and FastAPI are
7
+ served from the same container (Hugging Face Space). -->
8
  <meta name="api-base" content="" />
9
  <title>MediShield Document Classifier</title>
10
  <style>