Spaces:
Sleeping
Sleeping
add image path display for current and next images in voting process
Browse files
app.py
CHANGED
|
@@ -150,6 +150,7 @@ if submitted or st.session_state['loggedin'] == 'true':
|
|
| 150 |
token=os.environ.get("hf_token")
|
| 151 |
)
|
| 152 |
st.image(path, width=300)
|
|
|
|
| 153 |
gender = st.selectbox("Gender", [
|
| 154 |
"Male",
|
| 155 |
"Female",
|
|
@@ -172,6 +173,8 @@ if submitted or st.session_state['loggedin'] == 'true':
|
|
| 172 |
uuid_num=uuid_num,
|
| 173 |
)
|
| 174 |
st.write(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
|
|
|
|
|
|
|
| 175 |
# push the data to the database
|
| 176 |
|
| 177 |
st.write("Outside the form")
|
|
|
|
| 150 |
token=os.environ.get("hf_token")
|
| 151 |
)
|
| 152 |
st.image(path, width=300)
|
| 153 |
+
st.write(image_path)
|
| 154 |
gender = st.selectbox("Gender", [
|
| 155 |
"Male",
|
| 156 |
"Female",
|
|
|
|
| 173 |
uuid_num=uuid_num,
|
| 174 |
)
|
| 175 |
st.write(f"Vote submitted uuid: {uuid_num} (in case you want to undo the vote)")
|
| 176 |
+
image_path = get_one_from_queue(username)
|
| 177 |
+
st.write(f"Next image is {image_path}")
|
| 178 |
# push the data to the database
|
| 179 |
|
| 180 |
st.write("Outside the form")
|