cocoat commited on
Commit
e7e70d7
·
verified ·
1 Parent(s): a7c83e5
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -41,15 +41,16 @@ history = []
41
 
42
  def make_html_table(caption):
43
  rows = caption.split("\n")
44
- html = '<table style="width:100%;border-collapse:collapse;background:#fffaf1;color:#000">'
45
  for row in rows:
46
  if ": " in row:
47
  key, val = row.split(": ", 1)
48
  html += (
49
- f'<tr><th style="text-align:left;border:1px solid #ddd;padding:4px;">{key}</th>'
50
- f'<td style="border:1px solid #ddd;padding:4px;">{val}</td></tr>'
 
51
  )
52
- html += '</table>'
53
  return html
54
 
55
  def infer(prompt, neg, seed, rand, w, h, cfg, steps, scheduler_type, progress=gr.Progress(track_tqdm=True)):
@@ -142,7 +143,7 @@ html, .gradio-container, .dark, .dark * {
142
  .block.svelte-11xb1hd {
143
  background: #efd1bf !important;
144
  }
145
- .span.svelte-g2oxp3, label.svelte-5ncdh7.svelte-5ncdh7.svelte-5ncdh7 {
146
  color: #915325 !important;
147
  }
148
  .svelte-zyxd38 g {
@@ -155,7 +156,7 @@ html, .gradio-container, .dark, .dark * {
155
  :root {
156
  --color-accent: #a57659;
157
  }
158
- .max_value.svelte-10lj3xl.svelte-10lj3xl {
159
  color: #a54618 !important;
160
  }
161
  body.gradio-running #custom-loader { display: flex; }
@@ -180,7 +181,7 @@ body.gradio-running #custom-loader { display: flex; }
180
 
181
  with gr.Blocks(css=css) as demo:
182
  with gr.Column(elem_id="col-container"):
183
- gr.HTML('<section class="nobackground"><h2>SDXL Base – cocoamixXL3 Demo</h2></section>')
184
  gr.HTML('<section class="nobackground"><a href="https://civitai.com/models/1553716?modelVersionId=1855218" target="_blank">Link: Civitai</a></section>')
185
 
186
  with gr.Row():
 
41
 
42
  def make_html_table(caption):
43
  rows = caption.split("\n")
44
+ # html = '<table style="width:100%;border-collapse:collapse;background:#fffaf1;color:#000">'
45
  for row in rows:
46
  if ": " in row:
47
  key, val = row.split(": ", 1)
48
  html += (
49
+ f'{key}: {val}\n'
50
+ # f'<tr><th style="text-align:left;border:1px solid #ddd;padding:4px;">{key}</th>'
51
+ # f'<td style="border:1px solid #ddd;padding:4px;">{val}</td></tr>'
52
  )
53
+ # html += '</table>'
54
  return html
55
 
56
  def infer(prompt, neg, seed, rand, w, h, cfg, steps, scheduler_type, progress=gr.Progress(track_tqdm=True)):
 
143
  .block.svelte-11xb1hd {
144
  background: #efd1bf !important;
145
  }
146
+ span.svelte-g2oxp3, label.svelte-5ncdh7.svelte-5ncdh7.svelte-5ncdh7 {
147
  color: #915325 !important;
148
  }
149
  .svelte-zyxd38 g {
 
156
  :root {
157
  --color-accent: #a57659;
158
  }
159
+ .max_value.svelte-10lj3xl.svelte-10lj3xl, span.min_value {
160
  color: #a54618 !important;
161
  }
162
  body.gradio-running #custom-loader { display: flex; }
 
181
 
182
  with gr.Blocks(css=css) as demo:
183
  with gr.Column(elem_id="col-container"):
184
+ gr.HTML('<section class="nobackground"><h2>SDXL – Re:cocoamixXL3 (coamixXL3) Demo</h2></section>')
185
  gr.HTML('<section class="nobackground"><a href="https://civitai.com/models/1553716?modelVersionId=1855218" target="_blank">Link: Civitai</a></section>')
186
 
187
  with gr.Row():