Yaron Koresh commited on
Commit
e1a48c6
·
verified ·
1 Parent(s): 859fb3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def generate_random_string(length):
56
  @spaces.GPU(duration=20)
57
  def infer(prompt):
58
  name = generate_random_string(12)+".png"
59
- english_prompt = "Please generate a reasonable photograph: " + re.sub(f'[{string.punctuation}]', '', re.sub('[\s+]', ' ', translate(prompt,"en"))).upper().strip() + ". Create this scenario authentically. Use only genuine content! Follow all my instructions accuratly!!"
60
  print(f'Final prompt: {english_prompt}')
61
  image = pipe(english_prompt).images[0].save(name)
62
  return name
 
56
  @spaces.GPU(duration=20)
57
  def infer(prompt):
58
  name = generate_random_string(12)+".png"
59
+ english_prompt = "The real " + re.sub(f'[{string.punctuation}]', '', re.sub('[\s+]', ' ', translate(prompt,"en"))).upper().strip() + " authentically using only genuine content accuratly!!"
60
  print(f'Final prompt: {english_prompt}')
61
  image = pipe(english_prompt).images[0].save(name)
62
  return name