GiantPandas commited on
Commit
32d6c95
·
verified ·
1 Parent(s): 19874fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -300,7 +300,7 @@ def render_img(b64_list, idx, scale):
300
  # ---------- 居中模式 ----------
301
  return (
302
  f'<div style="overflow:auto;border:1px solid #ccc;'
303
- f'display:flex;justify-content:center;align-items:center;'
304
  f'width:100%;height:800px;">'
305
  f' <img src="{src}" '
306
  f' style="width:{percent}%;max-width:none;'
 
300
  # ---------- 居中模式 ----------
301
  return (
302
  f'<div style="overflow:auto;border:1px solid #ccc;'
303
+ f'justify-content:center;align-items:center;'
304
  f'width:100%;height:800px;">'
305
  f' <img src="{src}" '
306
  f' style="width:{percent}%;max-width:none;'