silveroxides commited on
Commit
c4f349b
1 Parent(s): b326fe8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -24,7 +24,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, text_encoder=text_encode
24
  pipe = pipe.to(device)
25
 
26
  MAX_SEED = np.iinfo(np.int32).max
27
- MAX_IMAGE_SIZE = 1216
28
 
29
  @spaces.GPU
30
  def infer(
@@ -75,8 +75,8 @@ with gr.Blocks(css=css) as demo:
75
  prompt = gr.Textbox(
76
  label="Prompt",
77
  show_label=False,
78
- max_lines=4,
79
- lines=4,
80
  placeholder="Enter your prompt",
81
  container=False,
82
  )
@@ -124,7 +124,7 @@ with gr.Blocks(css=css) as demo:
124
  with gr.Row():
125
  guidance_scale = gr.Slider(
126
  label="Guidance scale",
127
- minimum=0.0,
128
  maximum=7.5,
129
  step=0.1,
130
  value=0.0,
 
24
  pipe = pipe.to(device)
25
 
26
  MAX_SEED = np.iinfo(np.int32).max
27
+ MAX_IMAGE_SIZE = 1728
28
 
29
  @spaces.GPU
30
  def infer(
 
75
  prompt = gr.Textbox(
76
  label="Prompt",
77
  show_label=False,
78
+ max_lines=8,
79
+ lines=6,
80
  placeholder="Enter your prompt",
81
  container=False,
82
  )
 
124
  with gr.Row():
125
  guidance_scale = gr.Slider(
126
  label="Guidance scale",
127
+ minimum=-1.0,
128
  maximum=7.5,
129
  step=0.1,
130
  value=0.0,