lixiang46 commited on
Commit
46b364b
1 Parent(s): d5bcc1a
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -86,7 +86,7 @@ def infer(prompt, negative_prompt, seed, randomize_seed, width, height, guidance
86
  return image
87
 
88
  examples = [
89
- [None, "一张瓢虫的照片,微距,变焦,高质量,电影,拿着一个牌子,写着“可图”", None],
90
  ["穿着黑色T恤衫,上面中文绿色大字写着“可图”", "image/test_ip.jpg", 0.5],
91
  ["一只可爱的小狗在奔跑", "image/test_ip2.png", 0.5]
92
  ]
@@ -97,9 +97,13 @@ else:
97
  power_device = "CPU"
98
 
99
  css="""
100
- #col-container {
101
  margin: 0 auto;
102
- max-width: 650px;
 
 
 
 
103
  }
104
  """
105
 
@@ -111,7 +115,7 @@ with gr.Blocks(css=css) as demo:
111
  """)
112
 
113
  with gr.Row():
114
- with gr.Column(elem_id="col-container"):
115
  with gr.Row():
116
  ip_adapter_image = gr.Image(label="IP-Adapter Image", type="pil")
117
  with gr.Row():
@@ -178,7 +182,7 @@ with gr.Blocks(css=css) as demo:
178
  value=25,
179
  )
180
 
181
- with gr.Column(elem_id="col-container"):
182
  result = gr.Image(label="Result", show_label=False)
183
 
184
  with gr.Row():
 
86
  return image
87
 
88
  examples = [
89
+ ["一张瓢虫的照片,微距,变焦,高质量,电影,拿着一个牌子,写着“可图”", None, None],
90
  ["穿着黑色T恤衫,上面中文绿色大字写着“可图”", "image/test_ip.jpg", 0.5],
91
  ["一只可爱的小狗在奔跑", "image/test_ip2.png", 0.5]
92
  ]
 
97
  power_device = "CPU"
98
 
99
  css="""
100
+ #col-left {
101
  margin: 0 auto;
102
+ max-width: 500px;
103
+ }
104
+ #col-right {
105
+ margin: 0 auto;
106
+ max-width: 750px;
107
  }
108
  """
109
 
 
115
  """)
116
 
117
  with gr.Row():
118
+ with gr.Column(elem_id="col-left"):
119
  with gr.Row():
120
  ip_adapter_image = gr.Image(label="IP-Adapter Image", type="pil")
121
  with gr.Row():
 
182
  value=25,
183
  )
184
 
185
+ with gr.Column(elem_id="col-right"):
186
  result = gr.Image(label="Result", show_label=False)
187
 
188
  with gr.Row():