Spaces:
Running
Running
PerryCheng614
commited on
Commit
•
da2a633
1
Parent(s):
70a6a62
delete load dotenv logic
Browse files
app.py
CHANGED
@@ -5,10 +5,7 @@ import base64
|
|
5 |
from PIL import Image
|
6 |
import io
|
7 |
import os
|
8 |
-
from dotenv import load_dotenv
|
9 |
|
10 |
-
# Load environment variables
|
11 |
-
load_dotenv()
|
12 |
API_KEY = os.getenv("API_KEY")
|
13 |
if not API_KEY:
|
14 |
raise ValueError("API_KEY environment variable must be set")
|
|
|
5 |
from PIL import Image
|
6 |
import io
|
7 |
import os
|
|
|
8 |
|
|
|
|
|
9 |
API_KEY = os.getenv("API_KEY")
|
10 |
if not API_KEY:
|
11 |
raise ValueError("API_KEY environment variable must be set")
|