mrestrepo commited on
Commit
377836b
·
1 Parent(s): cc837e2

Not randomize seed

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -37,9 +37,9 @@ def infer(prompt, height, width, guidance_scale, num_inference_steps):
37
  # Convert the image to JPG format
38
  img_byte_arr = BytesIO()
39
  image.save(img_byte_arr, format='JPEG')
40
- img_byte_arr = img_byte_arr.getvalue()
41
 
42
- return image
43
 
44
 
45
  examples = [
@@ -86,7 +86,8 @@ with gr.Blocks(css=css) as demo:
86
  visible=False
87
  )
88
 
89
- randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
 
90
 
91
  with gr.Row():
92
 
@@ -114,7 +115,7 @@ with gr.Blocks(css=css) as demo:
114
  minimum=0.0,
115
  maximum=10.0,
116
  step=0.1,
117
- value=7.0,
118
  visible=True
119
  )
120
 
@@ -124,7 +125,7 @@ with gr.Blocks(css=css) as demo:
124
  minimum=1,
125
  maximum=50,
126
  step=1,
127
- value=50,
128
  visible=True
129
  )
130
 
 
37
  # Convert the image to JPG format
38
  img_byte_arr = BytesIO()
39
  image.save(img_byte_arr, format='JPEG')
40
+ image_jpg = img_byte_arr.getvalue()
41
 
42
+ return image_jpg
43
 
44
 
45
  examples = [
 
86
  visible=False
87
  )
88
 
89
+ randomize_seed = gr.Checkbox(
90
+ label="Randomize seed", value=True, visible=False)
91
 
92
  with gr.Row():
93
 
 
115
  minimum=0.0,
116
  maximum=10.0,
117
  step=0.1,
118
+ value=3.5,
119
  visible=True
120
  )
121
 
 
125
  minimum=1,
126
  maximum=50,
127
  step=1,
128
+ value=28,
129
  visible=True
130
  )
131