Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,9 @@ import uuid
|
|
6 |
def send_post_request(prompt, ratio, style, uuid, token):
|
7 |
# Define the URL
|
8 |
|
9 |
-
url = os.getenv('API_URL') #
|
|
|
|
|
10 |
|
11 |
|
12 |
# Define the headers with the required values
|
|
|
6 |
def send_post_request(prompt, ratio, style, uuid, token):
|
7 |
# Define the URL
|
8 |
|
9 |
+
url = os.getenv('API_URL') # Secret variable for the URL
|
10 |
+
if not url:
|
11 |
+
return "Error: API URL not set in environment secrets."
|
12 |
|
13 |
|
14 |
# Define the headers with the required values
|