Upload folder using huggingface_hub
Browse files
app.py
CHANGED
@@ -9,8 +9,6 @@ import getpass
|
|
9 |
|
10 |
# Get the API key
|
11 |
STABILITY_API_KEY = os.environ.get('STABILITY_API_KEY') # Try to get from environment variable
|
12 |
-
if not STABILITY_API_KEY:
|
13 |
-
STABILITY_API_KEY = getpass.getpass('Enter your API Key: ') # Prompt if not found
|
14 |
|
15 |
def send_generation_request(
|
16 |
host,
|
|
|
9 |
|
10 |
# Get the API key
|
11 |
STABILITY_API_KEY = os.environ.get('STABILITY_API_KEY') # Try to get from environment variable
|
|
|
|
|
12 |
|
13 |
def send_generation_request(
|
14 |
host,
|