insideman commited on
Commit
8b4c378
·
verified ·
1 Parent(s): 43843e8

Create upload_model_to_hub.py

Browse files
Files changed (1) hide show
  1. upload_model_to_hub.py +13 -0
upload_model_to_hub.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import login
2
+ from diffusers import FluxPipeline
3
+
4
+ # Hugging Face'e giriş yapın
5
+ login("your_token_here")
6
+
7
+ # Mevcut modelinizi yükleyin ve değişikliklerinizi yapın
8
+ pipe = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16)
9
+ pipe.load_lora_weights("Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design", weight_name="FLUX-dev-lora-Logo-Design.safetensors")
10
+ pipe.fuse_lora(lora_scale=0.8)
11
+
12
+ # Modeli Hugging Face'e yükleyin
13
+ pipe.push_to_hub("insideman/Flux-Logo-Design", private=True) # private=True gizli repo için