aiqtech commited on
Commit
a04b247
1 Parent(s): 37cf10b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -23
app.py CHANGED
@@ -118,32 +118,22 @@ def infer(prompt,
118
  return image, seed
119
 
120
 
121
- examples = [
122
- ["穿着晚礼服,在星光下的晚宴场景中,烛光闪闪,整个场景洋溢着浪漫而奢华的氛围", "image/image1.png"],
123
- ["西部牛仔,牛仔帽,荒野大镖客,背景是西部小镇,仙人掌,,日落余晖, 暖色调, 使用XT4胶片拍摄, 噪点, 晕影, 柯达胶卷,复古", "image/image2.png"]
124
- ]
125
 
126
 
127
- css="""
128
- #col-left {
129
- margin: 0 auto;
130
- max-width: 600px;
131
- }
132
- #col-right {
133
- margin: 0 auto;
134
- max-width: 750px;
135
- }
136
- #button {
137
- color: blue;
138
  }
139
  """
140
 
 
 
141
  def load_description(fp):
142
  with open(fp, 'r', encoding='utf-8') as f:
143
  content = f.read()
144
  return content
145
 
146
- with gr.Blocks(css=css) as Kolors:
147
  gr.HTML(load_description("assets/title.md"))
148
  with gr.Row():
149
  with gr.Column(elem_id="col-left"):
@@ -191,13 +181,7 @@ with gr.Blocks(css=css) as Kolors:
191
  result = gr.Image(label="Result", show_label=False)
192
  seed_used = gr.Number(label="Seed Used")
193
 
194
- with gr.Row():
195
- gr.Examples(
196
- fn = infer,
197
- examples = examples,
198
- inputs = [prompt, image],
199
- outputs = [result, seed_used],
200
- )
201
 
202
  button.click(
203
  fn = infer,
 
118
  return image, seed
119
 
120
 
 
 
 
 
121
 
122
 
123
+ css = """
124
+ footer {
125
+ visibility: hidden;
 
 
 
 
 
 
 
 
126
  }
127
  """
128
 
129
+
130
+
131
  def load_description(fp):
132
  with open(fp, 'r', encoding='utf-8') as f:
133
  content = f.read()
134
  return content
135
 
136
+ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as Kolors:
137
  gr.HTML(load_description("assets/title.md"))
138
  with gr.Row():
139
  with gr.Column(elem_id="col-left"):
 
181
  result = gr.Image(label="Result", show_label=False)
182
  seed_used = gr.Number(label="Seed Used")
183
 
184
+
 
 
 
 
 
 
185
 
186
  button.click(
187
  fn = infer,