artificialguybr commited on
Commit
96b8b6e
1 Parent(s): 490a63d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -9,6 +9,7 @@ import datetime
9
 
10
  def generate_image(prompt, negative_prompt, scheduler, steps, width, height, restore_faces, seed, cfg):
11
  request_time = datetime.datetime.now()
 
12
  print(f"restore_faces: {restore_faces}, type: {type(restore_faces)}")
13
  # Define the API endpoint
14
  apiUrl = os.getenv("API_URL")
 
9
 
10
  def generate_image(prompt, negative_prompt, scheduler, steps, width, height, restore_faces, seed, cfg):
11
  request_time = datetime.datetime.now()
12
+ restore_faces = bool(restore_faces)
13
  print(f"restore_faces: {restore_faces}, type: {type(restore_faces)}")
14
  # Define the API endpoint
15
  apiUrl = os.getenv("API_URL")