-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My messages are not showing up after i enter and i am not able to fetch the json data #1
Comments
Same problem here. I hope he responds |
Change your app.py to this: from flask import Flask, render_template,request,jsonify app = Flask(name) @app.route("/predict", methods=["POST"]) if name == "main": |
this still has errors, i believe the correct code should be from flask import Flask, render_template, request, jsonify app = Flask(name) @app.route("/", methods=["GET"]) @app.route("/predict", methods=["POST"]) if name == "main": |
@anoozhka please can you share the app.js code with me that works |
Pease check this and let me know app=Flask(name, template_folder='template') @app.route("/predict", methods=["POST"]) if name == "main": |
still not working |
Here are the screenshots of the error and the code.Any help would be appreciated
The text was updated successfully, but these errors were encountered: