Spaces:
Running
on
Zero
Running
on
Zero
rafaaa2105
commited on
Commit
•
74564d1
1
Parent(s):
92ec9db
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import torch
|
2 |
-
from diffusers import
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
import spaces
|
@@ -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")
|
|
|
1 |
import torch
|
2 |
+
from diffusers import pipeline
|
3 |
import gradio as gr
|
4 |
import os
|
5 |
import spaces
|
|
|
9 |
|
10 |
@spaces.GPU
|
11 |
# Load the available models and their pipelines
|
12 |
+
models = dict()
|
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")
|