Spaces:
Running
on
Zero
Running
on
Zero
Revert back to 8B
Browse files
app.py
CHANGED
@@ -184,12 +184,12 @@ if is_running_on_spaces():
|
|
184 |
# Load from Hugging Face Hub
|
185 |
ckpt_path = hf_hub_download(
|
186 |
repo_id="ruurd/tini_model",
|
187 |
-
filename="diffusion-model-
|
188 |
token=os.getenv("HF_TOKEN")
|
189 |
)
|
190 |
else:
|
191 |
# Load from local path
|
192 |
-
ckpt_path = "diffusion-model-
|
193 |
|
194 |
model, tokenizer = load_trained_model(checkpoint_path=ckpt_path)
|
195 |
print("✅ Model loaded.")
|
|
|
184 |
# Load from Hugging Face Hub
|
185 |
ckpt_path = hf_hub_download(
|
186 |
repo_id="ruurd/tini_model",
|
187 |
+
filename="diffusion-model-8B.pth",
|
188 |
token=os.getenv("HF_TOKEN")
|
189 |
)
|
190 |
else:
|
191 |
# Load from local path
|
192 |
+
ckpt_path = "diffusion-model-8B.pth" # change to your actual local path
|
193 |
|
194 |
model, tokenizer = load_trained_model(checkpoint_path=ckpt_path)
|
195 |
print("✅ Model loaded.")
|