Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,8 +7,17 @@ import cv2
|
|
| 7 |
|
| 8 |
# -----------------
|
| 9 |
import os
|
|
|
|
| 10 |
os.system('git clone https://github.com/huggingface/diffusers')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
os.system('cd diffusers && pip install -e .')
|
|
|
|
|
|
|
| 12 |
os.system('pip install git+file:///content/diffusers')
|
| 13 |
|
| 14 |
from diffusers import DiffusionPipeline
|
|
@@ -17,6 +26,8 @@ from diffusers import DiffusionPipeline
|
|
| 17 |
pipeline = DiffusionPipeline.from_pretrained("fusing/latent-diffusion-text2im-large")
|
| 18 |
generator = torch.manual_seed(42)
|
| 19 |
|
|
|
|
|
|
|
| 20 |
def greet(name):
|
| 21 |
return "Hello " + name + "!!"
|
| 22 |
|
|
|
|
| 7 |
|
| 8 |
# -----------------
|
| 9 |
import os
|
| 10 |
+
print('DEBUG: Cloning diffusers project')
|
| 11 |
os.system('git clone https://github.com/huggingface/diffusers')
|
| 12 |
+
|
| 13 |
+
print('DEBUG: Pwd')
|
| 14 |
+
os.system('pwd')
|
| 15 |
+
os.system('ls -la')
|
| 16 |
+
|
| 17 |
+
print('DEBUG: Install dependencies of diffusers')
|
| 18 |
os.system('cd diffusers && pip install -e .')
|
| 19 |
+
|
| 20 |
+
print('DEBUG: Pip install from the build of diffusers')
|
| 21 |
os.system('pip install git+file:///content/diffusers')
|
| 22 |
|
| 23 |
from diffusers import DiffusionPipeline
|
|
|
|
| 26 |
pipeline = DiffusionPipeline.from_pretrained("fusing/latent-diffusion-text2im-large")
|
| 27 |
generator = torch.manual_seed(42)
|
| 28 |
|
| 29 |
+
FOOTER = '<img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.glitch.me/badge?page_id=milyiyo.testing-diffusers" />'
|
| 30 |
+
|
| 31 |
def greet(name):
|
| 32 |
return "Hello " + name + "!!"
|
| 33 |
|