cocoat commited on
Commit
fa67754
·
verified ·
1 Parent(s): f801703

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -94,6 +94,10 @@ def infer(prompt, neg, seed, rand, w, h, cfg, steps, scheduler_type, progress=gr
94
  tables_html = "".join(f'<div style="margin-bottom:12px">{make_html_table(item[1])}</div>' for item in history)
95
  return img, gallery_items, tables_html
96
 
 
 
 
 
97
  # CSS 設定(ダークモード強制防止+カフェ風テーマ)
98
  css = """
99
  body {
@@ -254,10 +258,6 @@ with gr.Blocks(css=css, theme=gr.themes.Default(font=[gr.themes.GoogleFont("maki
254
  # テーブル部分だけを下にまとめて生HTMLレンダー
255
  history_tables = gr.HTML()
256
 
257
- def add_to_history(img):
258
- history.insert(0, img)
259
- return history
260
-
261
  run.click(
262
  fn=infer,
263
  inputs=[prompt, neg, seed_sl, rand, width, height, cfg, steps, scheduler_type],
 
94
  tables_html = "".join(f'<div style="margin-bottom:12px">{make_html_table(item[1])}</div>' for item in history)
95
  return img, gallery_items, tables_html
96
 
97
+ def add_to_history(img):
98
+ history.insert(0, img)
99
+ return history
100
+
101
  # CSS 設定(ダークモード強制防止+カフェ風テーマ)
102
  css = """
103
  body {
 
258
  # テーブル部分だけを下にまとめて生HTMLレンダー
259
  history_tables = gr.HTML()
260
 
 
 
 
 
261
  run.click(
262
  fn=infer,
263
  inputs=[prompt, neg, seed_sl, rand, width, height, cfg, steps, scheduler_type],