Spaces:
Running
on
Zero
Running
on
Zero
rafaaa2105
commited on
Commit
•
9ddb94a
1
Parent(s):
74564d1
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ lora_list = os.environ.get("LORAS") # Not in use
|
|
9 |
|
10 |
@spaces.GPU
|
11 |
# Load the available models and their pipelines
|
12 |
-
models =
|
13 |
for model_name in model_list:
|
14 |
try:
|
15 |
models[model_name] = pipeline("text-to-image", model=model_name, torch_dtype=torch.float16).to("cuda")
|
|
|
9 |
|
10 |
@spaces.GPU
|
11 |
# Load the available models and their pipelines
|
12 |
+
models = []
|
13 |
for model_name in model_list:
|
14 |
try:
|
15 |
models[model_name] = pipeline("text-to-image", model=model_name, torch_dtype=torch.float16).to("cuda")
|