Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
5 views
in AI and Deep Learning by (120 points)
i want to execute my web application development my model is run very well just when i run web app give me this error

HERE

127.0.0.1 - - [26/Nov/2020 14:48:17] "POST /predict HTTP/1.1" 500 -

Traceback (most recent call last):

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 2309, in __call__

    return self.wsgi_app(environ, start_response)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 2295, in wsgi_app

    response = self.handle_exception(e)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 1741, in handle_exception

    reraise(exc_type, exc_value, tb)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\_compat.py", line 35, in reraise

    raise value

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 2292, in wsgi_app

    response = self.full_dispatch_request()

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 1815, in full_dispatch_request

    rv = self.handle_user_exception(e)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 1718, in handle_user_exception

    reraise(exc_type, exc_value, tb)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\_compat.py", line 35, in reraise

    raise value

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 1813, in full_dispatch_request

    rv = self.dispatch_request()

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\flask\app.py", line 1799, in dispatch_request

    return self.view_functions[rule.endpoint](**req.view_args)

  File "C:\Users\ASUS\Desktop\my code\webapp\app.py", line 48, in predict

    prediction = model.predict(test_image)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\keras\engine\training.py", line 1441, in predict

    x, _, _ = self._standardize_user_data(x)

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\keras\engine\training.py", line 574, in _standardize_user_data

    x = training_utils.standardize_input_data(

  File "C:\Users\ASUS\anaconda3\Lib\site-packages\keras\engine\training_utils.py", line 131, in standardize_input_data

    raise ValueError(

ValueError: Error when checking input: expected model_6_input to have 4 dimensions, but got array with shape (1, 100, 100)

HERE
Please log in to answer this question.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...