Yaron Koresh commited on
Commit
41c9b8a
·
verified ·
1 Parent(s): 33a49c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -86,15 +86,15 @@ def generate_random_string(length):
86
  characters = string.ascii_letters + string.digits
87
  return ''.join(random.choice(characters) for _ in range(length))
88
 
89
- @spaces.GPU(duration=50)
90
  def Piper(_do,_dont):
91
  return pipe(
92
  _do,
93
  height=512,
94
- width=576,
95
  negative_prompt=_dont,
96
- num_inference_steps=250,
97
- guidance_scale=5.5
98
  )
99
 
100
  def infer(prompt,prompt2):
@@ -133,7 +133,7 @@ footer {
133
  max-width: 15cm !important;
134
  }
135
  #image-container {
136
- aspect-ratio: 576 / 512 !important;
137
  }
138
  .dropdown-arrow {
139
  display: none !important;
 
86
  characters = string.ascii_letters + string.digits
87
  return ''.join(random.choice(characters) for _ in range(length))
88
 
89
+ @spaces.GPU(duration=120)
90
  def Piper(_do,_dont):
91
  return pipe(
92
  _do,
93
  height=512,
94
+ width=640,
95
  negative_prompt=_dont,
96
+ num_inference_steps=400,
97
+ guidance_scale=10
98
  )
99
 
100
  def infer(prompt,prompt2):
 
133
  max-width: 15cm !important;
134
  }
135
  #image-container {
136
+ aspect-ratio: 640 / 512 !important;
137
  }
138
  .dropdown-arrow {
139
  display: none !important;