QIDNLF commited on
Commit
f1ddbf7
·
verified ·
1 Parent(s): 0ce5844

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -24,14 +24,12 @@ 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:100%;
28
- max-width:1000px;
29
  height:auto;
30
  display:block;
31
  margin:10px 0;
32
- cursor: zoom-in;
33
  "
34
- onclick="window.open(this.src)"
35
  >"""
36
  return str(blob_data)
37
  except Exception:
@@ -689,6 +687,7 @@ td {
689
  line-height: 1.6;
690
  padding: 10px;
691
  vertical-align: top !important;
 
692
  }
693
 
694
 
 
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;
 
32
  "
 
33
  >"""
34
  return str(blob_data)
35
  except Exception:
 
687
  line-height: 1.6;
688
  padding: 10px;
689
  vertical-align: top !important;
690
+ text-align: left !important;
691
  }
692
 
693