Spaces:
Running
Running
Alex
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def send_image2image_request(image, ratio, style, uuid_value, token, prompt):
|
|
79 |
# Function for Image-to-Image (Send POST request with an image and other parameters)
|
80 |
def send_line2image_request(image, ratio, style, uuid_value, token, prompt):
|
81 |
# Access the URL from Secrets (Private)
|
82 |
-
url = os.getenv('
|
83 |
if not url:
|
84 |
return "Error: API URL not set in environment secrets."
|
85 |
|
@@ -359,7 +359,7 @@ def create_interface():
|
|
359 |
line_style = gr.Textbox(label="Style ID")
|
360 |
line_uuid = gr.Textbox(label="UUID ID") # Default UUID
|
361 |
line_token = gr.Textbox(label="Token ID") # Password type for token
|
362 |
-
|
363 |
line_output = gr.Textbox() # Output for image-to-image response
|
364 |
|
365 |
|
|
|
79 |
# Function for Image-to-Image (Send POST request with an image and other parameters)
|
80 |
def send_line2image_request(image, ratio, style, uuid_value, token, prompt):
|
81 |
# Access the URL from Secrets (Private)
|
82 |
+
url = os.getenv('API_DOODLE') # Secret variable for the URL
|
83 |
if not url:
|
84 |
return "Error: API URL not set in environment secrets."
|
85 |
|
|
|
359 |
line_style = gr.Textbox(label="Style ID")
|
360 |
line_uuid = gr.Textbox(label="UUID ID") # Default UUID
|
361 |
line_token = gr.Textbox(label="Token ID") # Password type for token
|
362 |
+
line_prompt = gr.Textbox(label="img_prompt ID") # Password type for token
|
363 |
line_output = gr.Textbox() # Output for image-to-image response
|
364 |
|
365 |
|