Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,26 +1,26 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
import torch
|
4 |
import numpy as np
|
5 |
import PIL
|
6 |
import cv2
|
7 |
|
8 |
# -----------------
|
9 |
-
import os
|
10 |
-
print('\nDEBUG: Cloning diffusers project')
|
11 |
-
os.system('git clone https://github.com/huggingface/diffusers')
|
12 |
|
13 |
-
print('\nDEBUG: Pwd')
|
14 |
-
os.system('pwd')
|
15 |
-
os.system('ls -la')
|
16 |
|
17 |
-
print('\nDEBUG: Install dependencies of diffusers')
|
18 |
-
os.system('cd diffusers && pip install -e .')
|
19 |
|
20 |
-
print('\nDEBUG: Pip install from the build of diffusers')
|
21 |
-
os.system('pip install git+file:///home/user/app/diffusers')
|
22 |
|
23 |
-
from diffusers import DiffusionPipeline
|
24 |
# -----------------
|
25 |
|
26 |
pipeline = DiffusionPipeline.from_pretrained("fusing/latent-diffusion-text2im-large")
|
|
|
1 |
import gradio as gr
|
2 |
+
from diffusers import DiffusionPipeline
|
3 |
import torch
|
4 |
import numpy as np
|
5 |
import PIL
|
6 |
import cv2
|
7 |
|
8 |
# -----------------
|
9 |
+
#import os
|
10 |
+
#print('\nDEBUG: Cloning diffusers project')
|
11 |
+
#os.system('git clone https://github.com/huggingface/diffusers')
|
12 |
|
13 |
+
#print('\nDEBUG: Pwd')
|
14 |
+
#os.system('pwd')
|
15 |
+
#os.system('ls -la')
|
16 |
|
17 |
+
#print('\nDEBUG: Install dependencies of diffusers')
|
18 |
+
#os.system('cd diffusers && pip install -e .')
|
19 |
|
20 |
+
#print('\nDEBUG: Pip install from the build of diffusers')
|
21 |
+
#os.system('pip install git+file:///home/user/app/diffusers')
|
22 |
|
23 |
+
#from diffusers import DiffusionPipeline
|
24 |
# -----------------
|
25 |
|
26 |
pipeline = DiffusionPipeline.from_pretrained("fusing/latent-diffusion-text2im-large")
|