Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def generate_image(prompt, aspect_ratio, realism):
|
|
| 46 |
glif_token_id = (glif_token_id+1)%no_of_accounts
|
| 47 |
glif_tokens_tried+=1
|
| 48 |
GLIF_API_TOKEN = os.getenv(f"GLIF_API_TOKEN{glif_token_id}")
|
| 49 |
-
response_data =
|
| 50 |
glif_tokens_tried = 0
|
| 51 |
return response_data
|
| 52 |
response_data = "No credits available"
|
|
|
|
| 46 |
glif_token_id = (glif_token_id+1)%no_of_accounts
|
| 47 |
glif_tokens_tried+=1
|
| 48 |
GLIF_API_TOKEN = os.getenv(f"GLIF_API_TOKEN{glif_token_id}")
|
| 49 |
+
response_data = generate_image_async(prompt, aspect_ratio, realism)
|
| 50 |
glif_tokens_tried = 0
|
| 51 |
return response_data
|
| 52 |
response_data = "No credits available"
|