vinay-jose
commited on
Commit
•
ed85e7f
1
Parent(s):
894991e
Update app.py
Browse files
app.py
CHANGED
@@ -42,14 +42,14 @@ def index():
|
|
42 |
Div(id="result"),
|
43 |
H2("Test Images"),
|
44 |
Div(
|
45 |
-
Img(src="
|
46 |
-
hx_target="#result", hx_vals='{"image_path": "
|
47 |
-
Img(src="
|
48 |
-
hx_target="#result", hx_vals='{"image_path": "
|
49 |
-
Img(src="
|
50 |
-
hx_target="#result", hx_vals='{"image_path": "
|
51 |
-
Img(src="
|
52 |
-
hx_target="#result", hx_vals='{"image_path": "
|
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 |
))
|