techasad commited on
Commit
3024a38
1 Parent(s): 72b8da3

Update app.py

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