Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
import gradio as gr
|
2 |
-
from diffusers import PNDMPipeline,
|
3 |
import random
|
4 |
|
5 |
|
6 |
-
scheduler =
|
7 |
pipeline = PNDMPipeline.from_pretrained("uripper/GIANNIS", scheduler=scheduler)
|
8 |
# num_imgs = len(os.listdir("\stored_images"))
|
9 |
# imgs = os.listdir("\stored_images")
|
|
|
1 |
import gradio as gr
|
2 |
+
from diffusers import PNDMPipeline, PNDMScheduler
|
3 |
import random
|
4 |
|
5 |
|
6 |
+
scheduler = PNDMScheduler(num_train_timesteps=50)
|
7 |
pipeline = PNDMPipeline.from_pretrained("uripper/GIANNIS", scheduler=scheduler)
|
8 |
# num_imgs = len(os.listdir("\stored_images"))
|
9 |
# imgs = os.listdir("\stored_images")
|