Omnibus commited on
Commit
f4dd1d3
·
1 Parent(s): 55678b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -93,7 +93,7 @@ def details_fn(query):
93
  link_list.append(img['src'])
94
  image_out += f"""
95
  <div class='im_each'>
96
- <img onclick="function({img['src']})" src={img['src']}>
97
  </div>
98
  """
99
  print (img['src'])
@@ -168,9 +168,8 @@ def format_t(inp):
168
  return out
169
 
170
  load_js = """
171
- function(a) {
172
  console.log(a);
173
- return [a];
174
  }
175
  """
176
 
 
93
  link_list.append(img['src'])
94
  image_out += f"""
95
  <div class='im_each'>
96
+ <img onclick="func({img['src']})" src={img['src']}>
97
  </div>
98
  """
99
  print (img['src'])
 
168
  return out
169
 
170
  load_js = """
171
+ func = function(a) {
172
  console.log(a);
 
173
  }
174
  """
175