Mobil-DataLab commited on
Commit
1f0327b
·
verified ·
1 Parent(s): 0d0cf74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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")