Spaces:
Sleeping
Sleeping
Merge branch 'main' of https://huggingface.co/spaces/sohvren/MovieRecommenderV2
Browse files
app.py
CHANGED
@@ -21,7 +21,8 @@ load_dotenv() #load environment variables from .env file
|
|
21 |
##no clue why this is necessary. But won't see subfolders without it. Just on my laptop.
|
22 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
23 |
|
24 |
-
API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
|
|
25 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
26 |
|
27 |
# --- LOAD DATA AND MODEL ---
|
|
|
21 |
##no clue why this is necessary. But won't see subfolders without it. Just on my laptop.
|
22 |
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
23 |
|
24 |
+
#API_KEY = os.getenv("HUGGINGFACE_API_KEY")
|
25 |
+
API_KEY = os.environ["HUGGINGFACE_API_KEY"]
|
26 |
API_URL = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
|
27 |
|
28 |
# --- LOAD DATA AND MODEL ---
|