Spaces:
Runtime error
Runtime error
Mobil-DataLab
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ from diffusers.utils import load_image
|
|
5 |
import gradio as gr
|
6 |
import random
|
7 |
import os
|
|
|
|
|
|
|
|
|
8 |
|
9 |
# Instalar dependencias en Hugging Face Spaces
|
10 |
os.system("pip install -U diffusers controlnet_aux mediapipe")
|
|
|
5 |
import gradio as gr
|
6 |
import random
|
7 |
import os
|
8 |
+
from huggingface_hub import login
|
9 |
+
|
10 |
+
# Autenticarse en HuggingFace
|
11 |
+
login(os.getenv("HUGGINGFACEHUB_TOKEN"))
|
12 |
|
13 |
# Instalar dependencias en Hugging Face Spaces
|
14 |
os.system("pip install -U diffusers controlnet_aux mediapipe")
|