Skip to content

Commit ac86706

Browse files
committed
wip
1 parent 7997488 commit ac86706

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,20 @@
88
import time
99
import uvicorn
1010

11+
print("Starting app...")
12+
1113
# ─── Environment Config ────────────────────────────────────────────────────────
1214
MODEL = "model"
1315
HF_TOKEN = os.getenv("HF_TOKEN")
1416

15-
if MODEL and HF_TOKEN:
17+
print(f"HF_TOKEN: {HF_TOKEN}")
18+
19+
if HF_TOKEN:
1620
MODEL = snapshot_download(
1721
repo_id="zfir/TypeScriptMate",
1822
token=HF_TOKEN
1923
)
20-
print(os.listdir(MODEL))
24+
print(f"Model files: {os.listdir(MODEL)}")
2125

2226
# ─── Load model & tokenizer ────────────────────────────────────────────────────
2327
print(f"Loading {MODEL} model...")

0 commit comments

Comments
 (0)