DigiP-AI commited on
Commit
ae6b5a6
·
verified ·
1 Parent(s): c7fe223

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -53,7 +53,9 @@ API_TOKEN = os.getenv("HF_READ_TOKEN")
53
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
54
  timeout = 100
55
 
56
-
 
 
57
  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):
58
  if prompt == "" or prompt == None:
59
  return None
 
53
  headers = {"Authorization": f"Bearer {API_TOKEN}"}
54
  timeout = 100
55
 
56
+ def flip_image(x):
57
+ return np.fliplr(x)
58
+
59
  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):
60
  if prompt == "" or prompt == None:
61
  return None