Spaces:
Runtime error
Runtime error
Delete model_index.json
Browse files- model_index.json +0 -12
model_index.json
DELETED
|
@@ -1,12 +0,0 @@
|
|
| 1 |
-
from diffusers import StableDiffusionPipeline
|
| 2 |
-
import torch
|
| 3 |
-
|
| 4 |
-
model_id = "kothariyashhh/GenAi-Texttoimage"
|
| 5 |
-
|
| 6 |
-
pipe = StableDiffusionPipeline.from_pretrained(
|
| 7 |
-
model_id,
|
| 8 |
-
torch_dtype=torch.float16,
|
| 9 |
-
revision="main", # Ensure you are using the correct branch
|
| 10 |
-
use_safetensors=True # If the model has .safetensors format
|
| 11 |
-
)
|
| 12 |
-
pipe.to("cuda")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|