Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem with the return of flask
#2
First of all, you can debug the problem without flask. E.g. set data variable
and run the lstm model. I suspect, the error says that the model expects array of 3 dims (maybe this last dimension is batch size...) Try to reshape your array, e.g. predict_request=np.array(predict_request)[np.newaxis, ...].
Reply


Messages In This Thread
problem with the return of flask - by loutsi - Jun-03-2020, 10:04 AM
RE: problem with the return of flask - by scidam - Jun-03-2020, 11:10 AM
RE: problem with the return of flask - by loutsi - Jun-03-2020, 11:36 AM
RE: problem with the return of flask - by scidam - Jun-04-2020, 03:43 AM
RE: problem with the return of flask - by loutsi - Jun-04-2020, 08:12 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Return Frame as well as JSON response using same API in Flask Python Ask jenkins43 0 1,997 May-11-2020, 04:58 PM
Last Post: jenkins43
  Simple flask rest api problem cancerboi 4 2,941 Jan-29-2020, 03:10 PM
Last Post: brighteningeyes
  got some problem with flask signup form. darktitan 1 2,357 Aug-30-2019, 06:05 AM
Last Post: aligoren
  Flask return http status code 200 but web browser not recive supernoobs 2 11,082 Dec-29-2018, 09:27 PM
Last Post: Unisoftdev

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020