Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -12,7 +12,7 @@ st.write("For each pair, please select which image you prefer.")
|
|
| 12 |
# ---- IMAGE PAIRS ----
|
| 13 |
# Replace with your actual image paths or URLs
|
| 14 |
image_pairs = [
|
| 15 |
-
("images/ImageA_1.jpeg", "images/ImageB_1.jpeg"),
|
| 16 |
]
|
| 17 |
|
| 18 |
results = {}
|
|
@@ -41,5 +41,5 @@ if st.button("Submit"):
|
|
| 41 |
st.json(results)
|
| 42 |
|
| 43 |
# Save to file (you could also save to a database)
|
| 44 |
-
with open("resp/responses.txt", "a") as f:
|
| 45 |
f.write(str(results) + "\n")
|
|
|
|
| 12 |
# ---- IMAGE PAIRS ----
|
| 13 |
# Replace with your actual image paths or URLs
|
| 14 |
image_pairs = [
|
| 15 |
+
("../images/ImageA_1.jpeg", "../images/ImageB_1.jpeg"),
|
| 16 |
]
|
| 17 |
|
| 18 |
results = {}
|
|
|
|
| 41 |
st.json(results)
|
| 42 |
|
| 43 |
# Save to file (you could also save to a database)
|
| 44 |
+
with open("../resp/responses.txt", "a") as f:
|
| 45 |
f.write(str(results) + "\n")
|