I recently made an intent based chatbot for my portfolio and i deployed the code on render but when i am typing any message it is not responding. The app is running fine on local development server. But after deployment this has been shown in render logs Render Logs Error You can see the chatbot deployed here and it is not responding: text Following is the console error in inspect: /chat:1 Failed to load resource: the server responded with a status of 500 () script.js:34 Error: SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON i have tried everything chatGPT has told me to do currently in my app.py file i am taking care of wordnet and i have a folder in which wordnet is stored and i have given its path but i dont know still the same error. What to do ? here is the piece of code to do that: import json import pickle import os from flask import Flask,request,jsonify,render_template from src.helper import predict_class,get_response import nltk nltk_data_path = os.path.join(os.getcwd(), 'nltk_data','corpora') if not os.path.exists(nltk_data_path): os.makedirs(nltk_data_path) nltk.data.path.append(nltk_data_path) try: stop_words = set(nltk.corpus.stopwords.words('english')) except LookupError: nltk.download('stopwords', download_dir=nltk_data_path) stop_words = set(nltk.corpus.stopwords.words('english')) try: from nltk.corpus import wordnet except LookupError: nltk.download('wordnet', download_dir=nltk_data_path) Continue reading...