We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7997488 commit ac86706Copy full SHA for ac86706
app.py
@@ -8,16 +8,20 @@
8
import time
9
import uvicorn
10
11
+print("Starting app...")
12
+
13
# ─── Environment Config ────────────────────────────────────────────────────────
14
MODEL = "model"
15
HF_TOKEN = os.getenv("HF_TOKEN")
16
-if MODEL and HF_TOKEN:
17
+print(f"HF_TOKEN: {HF_TOKEN}")
18
19
+if HF_TOKEN:
20
MODEL = snapshot_download(
21
repo_id="zfir/TypeScriptMate",
22
token=HF_TOKEN
23
)
- print(os.listdir(MODEL))
24
+ print(f"Model files: {os.listdir(MODEL)}")
25
26
# ─── Load model & tokenizer ────────────────────────────────────────────────────
27
print(f"Loading {MODEL} model...")
0 commit comments