Spaces:
Runtime error
Runtime error
add login
Browse files- app.py +3 -0
- requirements.txt +2 -1
app.py
CHANGED
@@ -8,6 +8,9 @@ from diffusers import StableDiffusionInpaintPipeline
|
|
8 |
from rembg import remove
|
9 |
import requests
|
10 |
from io import BytesIO
|
|
|
|
|
|
|
11 |
|
12 |
def image_grid(imgs, rows, cols):
|
13 |
assert len(imgs) == rows*cols
|
|
|
8 |
from rembg import remove
|
9 |
import requests
|
10 |
from io import BytesIO
|
11 |
+
from huggingface_hub import notebook_login
|
12 |
+
|
13 |
+
notebook_login()
|
14 |
|
15 |
def image_grid(imgs, rows, cols):
|
16 |
assert len(imgs) == rows*cols
|
requirements.txt
CHANGED
@@ -4,4 +4,5 @@ ftfy
|
|
4 |
transformers
|
5 |
typing
|
6 |
diffusers
|
7 |
-
git+https://github.com/huggingface/diffusers.git
|
|
|
|
4 |
transformers
|
5 |
typing
|
6 |
diffusers
|
7 |
+
git+https://github.com/huggingface/diffusers.git
|
8 |
+
huggingface_hub
|