Yaron Koresh commited on
Commit
8109282
·
verified ·
1 Parent(s): 77ffbf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -84,9 +84,9 @@ def Piper(_do):
84
  _do,
85
  height=480,
86
  width=480,
87
- num_inference_steps=15,
88
  max_sequence_length=512,
89
- guidance_scale=2
90
  )
91
  return retu
92
  except:
@@ -95,9 +95,9 @@ def Piper(_do):
95
  def infer(prompt_en):
96
  name = generate_random_string(12)+".png"
97
  if prompt_en == "":
98
- _do = 'photographed scene, highly detailed, vivid colors, realistic content, dynamic poze, deep field'
99
  else:
100
- _do = f'{ prompt_en } photograph, highly detailed, vivid colors, realistic content, dynamic poze, deep field'
101
  output = Piper(_do)
102
  if output == "":
103
  return output
 
84
  _do,
85
  height=480,
86
  width=480,
87
+ num_inference_steps=20,
88
  max_sequence_length=512,
89
+ guidance_scale=10
90
  )
91
  return retu
92
  except:
 
95
  def infer(prompt_en):
96
  name = generate_random_string(12)+".png"
97
  if prompt_en == "":
98
+ _do = 'photographed scene, highly detailed, realistic content, dynamic poze, deep field, natural sharp vivid coloring, rough texture'
99
  else:
100
+ _do = f'{ prompt_en } photograph, highly detailed, realistic content, dynamic poze, deep field, natural sharp vivid coloring, rough texture'
101
  output = Piper(_do)
102
  if output == "":
103
  return output