Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,12 @@ import time
|
|
7 |
import random
|
8 |
from PIL import Image
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
m_pdir="/content/drive/MyDrive/aipic001/"
|
11 |
|
12 |
models =[
|
@@ -84,6 +90,8 @@ proc18=gr.Interface.load(f"models/{model_18}",live=False,preprocess=True, postpr
|
|
84 |
proc19=gr.Interface.load(f"models/{model_19}",live=False,preprocess=True, postprocess=False)
|
85 |
proc20=gr.Interface.load(f"models/{model_20}",live=False,preprocess=True, postprocess=False)
|
86 |
"""
|
|
|
|
|
87 |
|
88 |
proc1.launch()
|
89 |
#gr.Parallel(proc1, proc2, proc3).launch()
|
|
|
7 |
import random
|
8 |
from PIL import Image
|
9 |
|
10 |
+
from diffusers import DiffusionPipeline
|
11 |
+
|
12 |
+
repo_id = "runwayml/stable-diffusion-v1-5"
|
13 |
+
pipe = DiffusionPipeline.from_pretrained(repo_id)
|
14 |
+
print(pipe)
|
15 |
+
|
16 |
m_pdir="/content/drive/MyDrive/aipic001/"
|
17 |
|
18 |
models =[
|
|
|
90 |
proc19=gr.Interface.load(f"models/{model_19}",live=False,preprocess=True, postprocess=False)
|
91 |
proc20=gr.Interface.load(f"models/{model_20}",live=False,preprocess=True, postprocess=False)
|
92 |
"""
|
93 |
+
#https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading
|
94 |
+
|
95 |
|
96 |
proc1.launch()
|
97 |
#gr.Parallel(proc1, proc2, proc3).launch()
|