Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ if "model_initialized" not in st.session_state:
|
|
16 |
|
17 |
# Instalisasi Diffusion User
|
18 |
model_id = "runwayml/stable-diffusion-v1-5"
|
19 |
-
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32
|
20 |
|
21 |
if torch.cuda.is_available():
|
22 |
# Pipe akan dipindahkan ke GPU jika tersedia
|
|
|
16 |
|
17 |
# Instalisasi Diffusion User
|
18 |
model_id = "runwayml/stable-diffusion-v1-5"
|
19 |
+
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float32)
|
20 |
|
21 |
if torch.cuda.is_available():
|
22 |
# Pipe akan dipindahkan ke GPU jika tersedia
|