问答详情
源自:3-9 使用前端界面调用flask发布的ckpt模型(2)

到底哪出问题了?

main函数运行没报错但是前端就是不显示结果,在regression和convolutional两个程序单独运行正确率也没问题。



E:\anaconda\python.exe C:/Users/hou/PycharmProjects/untitled1/main1.py

E:\anaconda\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

2018-09-23 19:21:22.243387: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

 * Serving Flask app "main1" (lazy loading)

 * Environment: production

   WARNING: Do not use the development server in a production environment.

   Use a production WSGI server instead.

 * Debug mode: on

 * Restarting with stat

E:\anaconda\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.

  from ._conv import register_converters as _register_converters

2018-09-23 19:21:27.446637: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2

 * Debugger is active!

 * Debugger PIN: 844-859-070

 * Running on http://127.0.0.1:8000/ (Press CTRL+C to quit)


https://img3.mukewang.com/5ba778350001aee219201020.jpg

提问者:慕瓜8118008 2018-09-23 19:27

个回答

  • S扶摇S
    2019-09-09 17:39:29

    http://img2.mukewang.com/5d761d740001655d06540271.jpg

    http://img1.mukewang.com/5d761d9d0001da7005420329.jpg

    我也是这个原因,http状态显示200是请求成功,但是就是不显示结果。打开F12页面报错了,不知道怎么解决。


  • 慕粉1116433701
    2019-07-10 16:31:47

    app.run(host='127.0.0.1', port=9000)

    这样就可以了

  • weibo_慕前端5097493
    2018-12-28 20:54:56

    请问,问题解决了吗?同样也是这样,出不来output.

  • 慕沐6169659
    2018-11-23 14:23:25

    换ie浏览器完美运行

  • 慕标5055955
    2018-11-22 11:08:08

    我也是一样的问题,你解决了吗

  • 慕数据8973029
    2018-10-23 18:37:08

    你好,请问一下可以看一下你的数字识别这些代码吗?



  • AAnonymous
    2018-09-30 00:31:16

    ctrl + shit + i

    问题应该出在js里