lelafav502 commited on
Commit
99c60a8
·
verified ·
1 Parent(s): 6993fe6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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') # Make sure 'API_URL' is the name you used for the public variable
 
 
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