Spaces:
Running
Running
JV A commited on
Commit ·
0404bc0
1
Parent(s): 2c303cc
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,7 @@ import os
|
|
| 7 |
import random
|
| 8 |
|
| 9 |
def generate_image(prompt, negative_prompt, scheduler, steps, width, height, restore_faces, seed, cfg, token):
|
|
|
|
| 10 |
print(f"restore_faces: {restore_faces}, type: {type(restore_faces)}")
|
| 11 |
# Define the API endpoint
|
| 12 |
apiUrl = "https://apiv2.makeai.run/v2/txt2img"
|
|
|
|
| 7 |
import random
|
| 8 |
|
| 9 |
def generate_image(prompt, negative_prompt, scheduler, steps, width, height, restore_faces, seed, cfg, token):
|
| 10 |
+
restore_faces = bool(restore_faces)
|
| 11 |
print(f"restore_faces: {restore_faces}, type: {type(restore_faces)}")
|
| 12 |
# Define the API endpoint
|
| 13 |
apiUrl = "https://apiv2.makeai.run/v2/txt2img"
|