Spaces:
Runtime error
Runtime error
Commit
·
31014c3
1
Parent(s):
b000acd
add more model options
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from pipeline import CustomPipeline, setup_scheduler
|
|
|
4 |
from PIL import Image
|
5 |
# from easydict import EasyDict as edict
|
6 |
|
@@ -106,8 +107,14 @@ if __name__ == "__main__":
|
|
106 |
buttons = {}
|
107 |
|
108 |
list_models = [
|
109 |
-
|
|
|
|
|
110 |
]
|
|
|
|
|
|
|
|
|
111 |
|
112 |
with gr.Blocks() as demo:
|
113 |
gr.Markdown(
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from pipeline import CustomPipeline, setup_scheduler
|
4 |
+
from diffusers import StableDiffusionPipeline
|
5 |
from PIL import Image
|
6 |
# from easydict import EasyDict as edict
|
7 |
|
|
|
107 |
buttons = {}
|
108 |
|
109 |
list_models = [
|
110 |
+
"Linaqruf/anything-v3.0",
|
111 |
+
"runwayml/stable-diffusion-v1-5",
|
112 |
+
"dreamlike-art/dreamlike-photoreal-2.0",
|
113 |
]
|
114 |
+
for model_id in list_models:
|
115 |
+
pipeline = StableDiffusionPipeline.from_pretrained(model_id)
|
116 |
+
del pipeline
|
117 |
+
print(f"Downloaded {model_id}")
|
118 |
|
119 |
with gr.Blocks() as demo:
|
120 |
gr.Markdown(
|