File size: 695 Bytes
931223d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# upload_model.py - Upload model to Hugging Face Hub
from huggingface_hub import upload_folder
import os

model_path = os.path.join("models", "oeil d'elephant")
print(f"Uploading from: {model_path}")
print(f"Path exists: {os.path.exists(model_path)}")

if os.path.exists(model_path):
    print("Starting upload... (this may take a while for 3.5GB)")
    upload_folder(
        folder_path=model_path,
        repo_id="issoufzousko07/medsigclip-model",
        repo_type="model"
    )
    print("Upload complete!")
else:
    print(f"ERROR: Path not found: {model_path}")
    print("Available in models/:")
    if os.path.exists("models"):
        print(os.listdir("models"))