greendra commited on
Commit
98a55b0
·
1 Parent(s): 4043d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -166,7 +166,6 @@ def sd(prompt, negprompt, version):
166
  prompt = prompt.lower()
167
  negprompt = negprompt.lower()
168
 
169
- print(version)
170
  # set random seed
171
  seed = random.randint(0, 9999999)
172
 
@@ -227,7 +226,7 @@ def sd(prompt, negprompt, version):
227
  img = Image.open(io.BytesIO(artifact.binary))
228
  link = freeimagehost(prompt, img, seed)
229
  # time.sleep(2)
230
- print(keyid + ": " + timestamp + ": PROMPT \"" + prompt + ", Neg: " + negprompt + "\" WAS GENERATED SUCCESSFULLY AND IMAGE LINK: \n" + link[1] + "\n")
231
  return img, 'Your download URL: ' + link[0] + '<br> Seed: ' + seed
232
  except Exception as e:
233
  print(keyid, '\n' ,e)
 
166
  prompt = prompt.lower()
167
  negprompt = negprompt.lower()
168
 
 
169
  # set random seed
170
  seed = random.randint(0, 9999999)
171
 
 
226
  img = Image.open(io.BytesIO(artifact.binary))
227
  link = freeimagehost(prompt, img, seed)
228
  # time.sleep(2)
229
+ print(version + "," + keyid + ": " + timestamp + ": PROMPT \"" + prompt + ", Neg: " + negprompt + "\" WAS GENERATED SUCCESSFULLY AND IMAGE LINK: \n" + link[1] + "\n")
230
  return img, 'Your download URL: ' + link[0] + '<br> Seed: ' + seed
231
  except Exception as e:
232
  print(keyid, '\n' ,e)