Yaron Koresh commited on
Commit
ff82c2d
·
verified ·
1 Parent(s): 6e8c6e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -83,15 +83,15 @@ def generate_random_string(length):
83
  characters = string.ascii_letters + string.digits
84
  return ''.join(random.choice(characters) for _ in range(length))
85
 
86
- @spaces.GPU(duration=70)
87
  def Piper(_do,_dont):
88
  return pipe(
89
  _do,
90
  height=256,
91
  width=768,
92
  negative_prompt=_dont,
93
- num_inference_steps=400,
94
- guidance_scale=4
95
  )
96
 
97
  def infer(prompt_en,prompt2_en):
 
83
  characters = string.ascii_letters + string.digits
84
  return ''.join(random.choice(characters) for _ in range(length))
85
 
86
+ @spaces.GPU(duration=45)
87
  def Piper(_do,_dont):
88
  return pipe(
89
  _do,
90
  height=256,
91
  width=768,
92
  negative_prompt=_dont,
93
+ num_inference_steps=50,
94
+ guidance_scale=7
95
  )
96
 
97
  def infer(prompt_en,prompt2_en):