pathananas commited on
Commit
4c63eb9
·
verified ·
1 Parent(s): 5b77486
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -17,11 +17,7 @@ def fetch_history():
17
 
18
  html = ""
19
 
20
- for r in records:
21
- img_html = ""
22
- if r.get("image_path"):
23
- img_html = f'<img src="/file={r.get("image_path")}" width="160" style="border-radius:10px;margin-top:6px;">'
24
-
25
 
26
  html += f"""
27
  <div class="history-card">
@@ -34,8 +30,6 @@ def fetch_history():
34
 
35
  <div class="history-section">
36
  <b>Image:</b> {r.get('image')}
37
- <br>
38
- {img_html}
39
  </div>
40
 
41
  <div class="history-section">
 
17
 
18
  html = ""
19
 
20
+ for r in records:
 
 
 
 
21
 
22
  html += f"""
23
  <div class="history-card">
 
30
 
31
  <div class="history-section">
32
  <b>Image:</b> {r.get('image')}
 
 
33
  </div>
34
 
35
  <div class="history-section">