Yaron Koresh commited on
Commit
a299302
·
verified ·
1 Parent(s): 30d5bed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -59,7 +59,7 @@ def generate_random_string(length):
59
  @spaces.GPU(duration=12)
60
  def infer(prompt):
61
  name = generate_random_string(12)+".png"
62
- english_prompt = f'!! REAL {translate(prompt,"english").upper()} PHOTOGRAPH !!'
63
  print(f'Final prompt: {english_prompt}')
64
  image = pipe(english_prompt).images[0].save(name)
65
  return name
 
59
  @spaces.GPU(duration=12)
60
  def infer(prompt):
61
  name = generate_random_string(12)+".png"
62
+ english_prompt = f'TRUE {translate(prompt,"english").upper()}:'
63
  print(f'Final prompt: {english_prompt}')
64
  image = pipe(english_prompt).images[0].save(name)
65
  return name