Yaron Koresh commited on
Commit
5686b14
·
verified ·
1 Parent(s): 8c4e7a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(duration=13)
75
  def Piper(_do,_dont):
76
  return pipe(
77
  _do,
78
- height=256,
79
  width=512,
80
  negative_prompt=_dont,
81
  num_inference_steps=45,
82
- guidance_scale=2.5
83
  )
84
 
85
  def infer(prompt,prompt2):
@@ -106,7 +106,7 @@ footer {
106
  max-width: 15cm;
107
  }
108
  #image-container {
109
- aspect-ratio: 512 / 256;
110
  }
111
  .dropdown-arrow {
112
  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=17)
75
  def Piper(_do,_dont):
76
  return pipe(
77
  _do,
78
+ height=384,
79
  width=512,
80
  negative_prompt=_dont,
81
  num_inference_steps=45,
82
+ guidance_scale=9
83
  )
84
 
85
  def infer(prompt,prompt2):
 
106
  max-width: 15cm;
107
  }
108
  #image-container {
109
+ aspect-ratio: 512 / 384;
110
  }
111
  .dropdown-arrow {
112
  display: none !important;