QIDNLF commited on
Commit
003bf04
·
verified ·
1 Parent(s): cd17a4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -24,8 +24,8 @@ def blob_to_base64_html(blob_data):
24
  encoded = base64.b64encode(blob_data).decode('utf-8')
25
  return f"""<img src="data:image/png;base64,{encoded}"
26
  style="
27
- width:80%;
28
- max-width:900px;
29
  height:auto;
30
  display:block;
31
  margin:10px 0;
@@ -625,7 +625,7 @@ with gr.Blocks() as demo:
625
  # --------------------------
626
  css = """
627
  table {
628
- table-layout: auto !important;
629
  width: 100% !important;
630
  }
631
 
@@ -689,7 +689,10 @@ td {
689
  vertical-align: top !important;
690
  text-align: left !important;
691
  }
692
-
 
 
 
693
 
694
  """
695
  if __name__ == "__main__":
 
24
  encoded = base64.b64encode(blob_data).decode('utf-8')
25
  return f"""<img src="data:image/png;base64,{encoded}"
26
  style="
27
+ width:1200px;
28
+ max-width:none;
29
  height:auto;
30
  display:block;
31
  margin:10px 0;
 
625
  # --------------------------
626
  css = """
627
  table {
628
+ table-layout: fixed !important;
629
  width: 100% !important;
630
  }
631
 
 
689
  vertical-align: top !important;
690
  text-align: left !important;
691
  }
692
+ td img {
693
+ display: block;
694
+ max-width: none !important;
695
+ }
696
 
697
  """
698
  if __name__ == "__main__":