Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,11 @@ import io
|
|
5 |
import PIL
|
6 |
import os
|
7 |
|
|
|
|
|
|
|
|
|
|
|
8 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
9 |
headers = os.getenv("SEECRET_TOKEN")
|
10 |
|
|
|
5 |
import PIL
|
6 |
import os
|
7 |
|
8 |
+
from dotenv import load_dotenv
|
9 |
+
|
10 |
+
# Load environment variables from .env file
|
11 |
+
load_dotenv()
|
12 |
+
|
13 |
API_URL = "https://api-inference.huggingface.co/models/runwayml/stable-diffusion-v1-5"
|
14 |
headers = os.getenv("SEECRET_TOKEN")
|
15 |
|