vinay-jose commited on
Commit
ed85e7f
1 Parent(s): 894991e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -42,14 +42,14 @@ def index():
42
  Div(id="result"),
43
  H2("Test Images"),
44
  Div(
45
- Img(src="static/chair1.jpg", hx_trigger="click", hx_get="/classify",
46
- hx_target="#result", hx_vals='{"image_path": "static/chair1.jpg"}'),
47
- Img(src="static/chair2.jpg", hx_trigger="click", hx_get="/classify",
48
- hx_target="#result", hx_vals='{"image_path": "static/chair2.jpg"}'),
49
- Img(src="static/lamp1.jpg", hx_trigger="click", hx_get="/classify",
50
- hx_target="#result", hx_vals='{"image_path": "static/lamp1.jpg"}'),
51
- Img(src="static/lamp2.jpg", hx_trigger="click", hx_get="/classify",
52
- hx_target="#result", hx_vals='{"image_path": "static/lamp2.jpg"}'),
53
  cls="image-box"
54
  )
55
  ))
 
42
  Div(id="result"),
43
  H2("Test Images"),
44
  Div(
45
+ Img(src="chair1.jpg", hx_trigger="click", hx_get="/classify",
46
+ hx_target="#result", hx_vals='{"image_path": "chair1.jpg"}'),
47
+ Img(src="chair2.jpg", hx_trigger="click", hx_get="/classify",
48
+ hx_target="#result", hx_vals='{"image_path": "chair2.jpg"}'),
49
+ Img(src="lamp1.jpg", hx_trigger="click", hx_get="/classify",
50
+ hx_target="#result", hx_vals='{"image_path": "lamp1.jpg"}'),
51
+ Img(src="lamp2.jpg", hx_trigger="click", hx_get="/classify",
52
+ hx_target="#result", hx_vals='{"image_path": "lamp2.jpg"}'),
53
  cls="image-box"
54
  )
55
  ))