Yaron Koresh commited on
Commit
7912b14
·
verified ·
1 Parent(s): 0307843

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -71,15 +71,15 @@ def generate_random_string(length):
71
  characters = string.ascii_letters + string.digits
72
  return ''.join(random.choice(characters) for _ in range(length))
73
 
74
- @spaces.GPU
75
  def Piper(_do):
76
  return pipe(
77
  _do,
78
- height=512,
79
- width=512,
80
  negative_prompt="",
81
- num_inference_steps=100,
82
- guidance_scale=10
83
  )
84
 
85
  def infer(prompt):
 
71
  characters = string.ascii_letters + string.digits
72
  return ''.join(random.choice(characters) for _ in range(length))
73
 
74
+ @spaces.GPU(duration=120)
75
  def Piper(_do):
76
  return pipe(
77
  _do,
78
+ height=448,
79
+ width=448,
80
  negative_prompt="",
81
+ num_inference_steps=400,
82
+ guidance_scale=9
83
  )
84
 
85
  def infer(prompt):