fred-rcky-deaf-comm / debug_imports.py
Fred-Rcky's picture
Upload folder using huggingface_hub
0942c1e verified
Raw
History Blame Contribute Delete
569 Bytes
try:
import tensorflow as tf
print(f"TensorFlow found: {tf.__version__}")
print(f"TFLite module location: {tf.lite.__file__ if hasattr(tf.lite, '__file__') else 'unknown'}")
interpreter = tf.lite.Interpreter(model_path="backend/app/models/lstm_model.tflite")
print("TF interpreter instantiated successfully.")
except Exception as e:
print(f"TF import/init failed: {e}")
try:
import tflite_runtime.interpreter as tflite
print(f"tflite_runtime found: {tflite.__file__}")
except Exception as e:
print(f"tflite_runtime not found: {e}")