update 2, app complete
Browse files
app.py
CHANGED
@@ -152,7 +152,10 @@ def process_user_auth(command, user_id, gripper_value, gripper_speed, angle1, an
|
|
152 |
remaining_time_msg = f"Your turn!\nTime remaining: {wait_time:.2f} seconds."
|
153 |
return result, response_image, remaining_time_msg
|
154 |
elif position is not None:
|
155 |
-
|
|
|
|
|
|
|
156 |
return None, None, wait_msg
|
157 |
else:
|
158 |
return None, None, "Error: You are not in the queue."
|
|
|
152 |
remaining_time_msg = f"Your turn!\nTime remaining: {wait_time:.2f} seconds."
|
153 |
return result, response_image, remaining_time_msg
|
154 |
elif position is not None:
|
155 |
+
if position == 1:
|
156 |
+
wait_msg = f"You are next!\nWait time: {wait_time:.2f} seconds."
|
157 |
+
else:
|
158 |
+
wait_msg = f"There are {position - 1} people ahead of you in the queue.\nWait time: {wait_time:.2f} seconds."
|
159 |
return None, None, wait_msg
|
160 |
else:
|
161 |
return None, None, "Error: You are not in the queue."
|