Ternsorflow.keras.models not found

import os
from bson import ObjectId
import numpy as np
import librosa
from flask import Flask, request, jsonify, session
from flask_cors import CORS
from flask_pymongo import PyMongo
from flask_login import LoginManager, UserMixin, login_user, login_required
from flask_session import Session
import logging
import speech_recognition as sr
import bcrypt
from datetime import datetime
from tensorflow.keras.models import load_model  # Updated import statement for Keras

trying to use these imports but for tensorflow it giving me error could not resolved.

I have installed both tensorflow and keras. Will anyone can help me on this ?

Hi @Jagbir_Singh
It would probably help if you were providing with details about your setup (package versions, PC/Mac, Python version …)
In the meantime, can you please try out from keras.models import load_model instead of the import statement that is causing you issues?

1 Like