Yaron Koresh commited on
Commit
3b4afb5
·
verified ·
1 Parent(s): a817578

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -49,10 +49,10 @@ def generate_random_string(length):
49
  characters = string.ascii_letters + string.digits
50
  return ''.join(random.choice(characters) for _ in range(length))
51
 
52
- @spaces.GPU(duration=20)
53
  def infer(prompt):
54
  name = generate_random_string(12)+".png"
55
- english_prompt = f'The "{translate(prompt,"english")}" authentically labels-free genuine accurate:'
56
  print(f'Final prompt: {english_prompt}')
57
  image = pipe(english_prompt).images[0].save(name)
58
  return name
 
49
  characters = string.ascii_letters + string.digits
50
  return ''.join(random.choice(characters) for _ in range(length))
51
 
52
+ @spaces.GPU(duration=15)
53
  def infer(prompt):
54
  name = generate_random_string(12)+".png"
55
+ english_prompt = f'Simple genuine photograph: "{translate(prompt,"english")}" !!'
56
  print(f'Final prompt: {english_prompt}')
57
  image = pipe(english_prompt).images[0].save(name)
58
  return name