Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,11 +5,12 @@ from PIL import Image
|
|
5 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
6 |
from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler
|
7 |
|
|
|
8 |
|
9 |
# Florence-2 로드
|
10 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
-
florence_model = AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base', trust_remote_code=True).to(device).eval()
|
12 |
-
florence_processor = AutoProcessor.from_pretrained('microsoft/Florence-2-base', trust_remote_code=True)
|
13 |
|
14 |
# Stable Diffusion TurboX 로드
|
15 |
model_repo = "tensorart/stable-diffusion-3.5-large-TurboX"
|
|
|
5 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
6 |
from diffusers import DiffusionPipeline, FlowMatchEulerDiscreteScheduler
|
7 |
|
8 |
+
REVISION = "9d515616ecb4f49eecc160bd60eec62356e5f858"
|
9 |
|
10 |
# Florence-2 로드
|
11 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
12 |
+
florence_model = AutoModelForCausalLM.from_pretrained('microsoft/Florence-2-base', revision = REVISION, trust_remote_code=True).to(device).eval()
|
13 |
+
florence_processor = AutoProcessor.from_pretrained('microsoft/Florence-2-base', revision = REVISION, trust_remote_code=True)
|
14 |
|
15 |
# Stable Diffusion TurboX 로드
|
16 |
model_repo = "tensorart/stable-diffusion-3.5-large-TurboX"
|