Spaces:
Build error
Build error
Addedd Loggin to app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
import os
|
|
|
|
|
|
|
| 4 |
|
| 5 |
token = os.getenv("TokenForRepos")
|
|
|
|
| 6 |
|
| 7 |
# Autenticaci贸n en Hugging Face si es necesario
|
| 8 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = token
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from transformers import pipeline
|
| 3 |
import os
|
| 4 |
+
from huggingface_hub import login
|
| 5 |
+
import os
|
| 6 |
|
| 7 |
token = os.getenv("TokenForRepos")
|
| 8 |
+
login(token)
|
| 9 |
|
| 10 |
# Autenticaci贸n en Hugging Face si es necesario
|
| 11 |
os.environ["HUGGINGFACEHUB_API_TOKEN"] = token
|