megemini commited on
Commit
2ccfab1
1 Parent(s): 7317748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -34,12 +34,12 @@ with demo:
34
  with gr.Row():
35
  with gr.Column():
36
  with gr.Row():
37
- model = gr.Dropdown(["shanshui_gen_style", "shanshui_style"], label="Model", info="The model to generate image.")
38
  with gr.Row():
39
- prompt = gr.Textbox(label='prompt')
40
  with gr.Row():
41
- width = gr.Slider(128, 768, value=512, step=8, label="Width", info="The width of image.")
42
- height = gr.Slider(128, 768, value=512, step=8, label="Height", info="The height of image.")
43
  with gr.Row():
44
  num_inference_steps = gr.Textbox(label='num inference steps')
45
  guidance_scale = gr.Textbox(label='guidance scale')
@@ -54,17 +54,17 @@ with demo:
54
  [
55
  "shanshui_gen_style",
56
  "A fantasy landscape in <shanshui-gen-style>",
57
- 512,
58
- 288,
59
- 100,
60
  7.5,
61
  ],
62
  [
63
  "shanshui_style",
64
  "A fantasy landscape in <shanshui-style>",
65
- 512,
66
- 288,
67
- 100,
68
  7.5,
69
  ],
70
  ],
 
34
  with gr.Row():
35
  with gr.Column():
36
  with gr.Row():
37
+ model = gr.Dropdown(["shanshui_gen_style", "shanshui_style"], label="Model")
38
  with gr.Row():
39
+ prompt = gr.Textbox(label='Prompt')
40
  with gr.Row():
41
+ width = gr.Slider(128, 768, value=512, step=8, label="Width")
42
+ height = gr.Slider(128, 768, value=512, step=8, label="Height")
43
  with gr.Row():
44
  num_inference_steps = gr.Textbox(label='num inference steps')
45
  guidance_scale = gr.Textbox(label='guidance scale')
 
54
  [
55
  "shanshui_gen_style",
56
  "A fantasy landscape in <shanshui-gen-style>",
57
+ 256,
58
+ 144,
59
+ 50,
60
  7.5,
61
  ],
62
  [
63
  "shanshui_style",
64
  "A fantasy landscape in <shanshui-style>",
65
+ 256,
66
+ 144,
67
+ 50,
68
  7.5,
69
  ],
70
  ],