Update app.py
Browse files
app.py
CHANGED
|
@@ -185,7 +185,7 @@ def save_and_upload_data(image, query, session_id, is_example_image, votes=None)
|
|
| 185 |
def update_vote(vote_type, session_id, is_example_image):
|
| 186 |
"""Update the vote count and re-upload the JSON file."""
|
| 187 |
if is_example_image == "True":
|
| 188 |
-
return "Example image
|
| 189 |
|
| 190 |
local_file_name = f"{session_id}.json"
|
| 191 |
|
|
|
|
| 185 |
def update_vote(vote_type, session_id, is_example_image):
|
| 186 |
"""Update the vote count and re-upload the JSON file."""
|
| 187 |
if is_example_image == "True":
|
| 188 |
+
return "Example image."
|
| 189 |
|
| 190 |
local_file_name = f"{session_id}.json"
|
| 191 |
|