Yaron Koresh commited on
Commit
5064ade
·
verified ·
1 Parent(s): 2d4510c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -71,14 +71,14 @@ 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(duration=50)
75
  def Piper(_do,_dont):
76
  return pipe(
77
  _do,
78
- height=720,
79
- width=1280,
80
  negative_prompt=_dont,
81
- num_inference_steps=50,
82
  guidance_scale=9
83
  )
84
 
@@ -103,7 +103,7 @@ css="""
103
  max-width: 15cm;
104
  }
105
  #image-container {
106
- aspect-ratio: 16 / 9;
107
  }
108
  .dropdown-arrow {
109
  display: none !important;
 
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,_dont):
76
  return pipe(
77
  _do,
78
+ height=512,
79
+ width=768,
80
  negative_prompt=_dont,
81
+ num_inference_steps=100,
82
  guidance_scale=9
83
  )
84
 
 
103
  max-width: 15cm;
104
  }
105
  #image-container {
106
+ aspect-ratio: 3 / 2;
107
  }
108
  .dropdown-arrow {
109
  display: none !important;