Spaces:
Build error
Build error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,9 @@ def load_image_pair(index):
|
|
| 34 |
|
| 35 |
def form_callback(name, imgID, correct):
|
| 36 |
with open(RESULTS_FILE, 'a+') as f: #Append & read mode
|
| 37 |
-
f.write(f"{name},{imgID},{correct}\n")
|
|
|
|
|
|
|
| 38 |
|
| 39 |
|
| 40 |
# -------------------------
|
|
|
|
| 34 |
|
| 35 |
def form_callback(name, imgID, correct):
|
| 36 |
with open(RESULTS_FILE, 'a+') as f: #Append & read mode
|
| 37 |
+
yes = f.write(f"{name},{imgID},{correct}\n")
|
| 38 |
+
st.success(yes)
|
| 39 |
+
|
| 40 |
|
| 41 |
|
| 42 |
# -------------------------
|