DigiP-AI commited on
Commit
887b839
·
verified ·
1 Parent(s): 630d650

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ headers = {"Authorization": f"Bearer {API_TOKEN}"}
52
  timeout = 100
53
 
54
 
55
- def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="DPM++ 2M Karras", seed=-1, strength=0.7, width=1024, height=1024):
56
  if prompt == "" or prompt == None:
57
  return None
58
 
@@ -108,7 +108,7 @@ def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="
108
  except Exception as e:
109
  print(f"Error when trying to open the image: {e}")
110
  return None
111
- NUM_IMAGES_PER_PROMPT = 1
112
 
113
  examples = [
114
  "a beautiful woman with blonde hair and blue eyes",
 
52
  timeout = 100
53
 
54
 
55
+ def query(lora_id, prompt, is_negative=False, steps=28, cfg_scale=3.5, sampler="DPM++ 2M Karras", num_images_per_prompt =1, seed=-1, strength=0.7, width=1024, height=1024):
56
  if prompt == "" or prompt == None:
57
  return None
58
 
 
108
  except Exception as e:
109
  print(f"Error when trying to open the image: {e}")
110
  return None
111
+
112
 
113
  examples = [
114
  "a beautiful woman with blonde hair and blue eyes",