Commit
·
d3c262e
1
Parent(s):
b17cf1a
app.py updates
Browse files
app.py
CHANGED
@@ -28,8 +28,11 @@ if "points" not in st.session_state:
|
|
28 |
|
29 |
#"## Click on image"
|
30 |
|
31 |
-
r
|
32 |
-
|
|
|
|
|
|
|
33 |
|
34 |
def button_click():
|
35 |
r=np.random.randint(100)
|
|
|
28 |
|
29 |
#"## Click on image"
|
30 |
|
31 |
+
if r not in vars():
|
32 |
+
r=0
|
33 |
+
|
34 |
+
#r=0#np.random.randint(100)
|
35 |
+
current_image=ds[r]['image']
|
36 |
|
37 |
def button_click():
|
38 |
r=np.random.randint(100)
|