-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I uploaded a pictrue and received following output:
Press CTRL+C to quit 127.0.0.1 - - [06/Dec/2024 18:33:37] "GET / HTTP/1.1" 200 - 127.0.0.1 - - [06/Dec/2024 18:34:15] "GET /favicon.ico HTTP/1.1" 404 - [2024-12-06 18:34:30,088] ERROR in app: Exception on /vehicle-count [POST] Traceback (most recent call last): File "C:\Users\11252\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 2190, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\11252\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1486, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\11252\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask_restful\__init__.py", line 298, in error_router return original_handler(e) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\11252\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\11252\AppData\Local\Programs\Python\Python311\Lib\site-packages\flask\app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Downloads\car-detect-web-main\car-detect-web-main\app.py", line 134, in vehicle_count_page vehicle_counts[label] += 1 ~~~~~~~~~~~~~~^^^^^^^ KeyError: 'train' 127.0.0.1 - - [06/Dec/2024 18:34:30] "POST /vehicle-count HTTP/1.1" 500 -