Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -30,6 +30,15 @@ from diffusers.utils import load_image
|
|
30 |
|
31 |
import spaces
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
def calculate_shift(
|
34 |
image_seq_len,
|
35 |
base_seq_len: int = 256,
|
@@ -2073,14 +2082,6 @@ loras = [
|
|
2073 |
"trigger_word": "3DXLP2"
|
2074 |
},
|
2075 |
#225
|
2076 |
-
{
|
2077 |
-
"image": "https://huggingface.co/strangerzonehf/Flux-3DXL-Partfile-0003/resolve/main/images/222.png",
|
2078 |
-
"title": "3DXLP3",
|
2079 |
-
"repo": "strangerzonehf/Flux-3DXL-Partfile-0003",
|
2080 |
-
"weights": "3DXLP3.safetensors",
|
2081 |
-
"trigger_word": "3DXLP3"
|
2082 |
-
},
|
2083 |
-
#226
|
2084 |
{
|
2085 |
"image": "https://huggingface.co/strangerzonehf/Flux-3DXL-Partfile-0004/resolve/main/images/3333.png",
|
2086 |
"title": "3DXLP4",
|
|
|
30 |
|
31 |
import spaces
|
32 |
|
33 |
+
#---if workspace = local or colab---
|
34 |
+
|
35 |
+
# Authenticate with Hugging Face
|
36 |
+
# from huggingface_hub import login
|
37 |
+
|
38 |
+
# Log in to Hugging Face using the provided token
|
39 |
+
# hf_token = 'hf-token-authentication'
|
40 |
+
# login(hf_token)
|
41 |
+
|
42 |
def calculate_shift(
|
43 |
image_seq_len,
|
44 |
base_seq_len: int = 256,
|
|
|
2082 |
"trigger_word": "3DXLP2"
|
2083 |
},
|
2084 |
#225
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2085 |
{
|
2086 |
"image": "https://huggingface.co/strangerzonehf/Flux-3DXL-Partfile-0004/resolve/main/images/3333.png",
|
2087 |
"title": "3DXLP4",
|