Spaces:
No application file
No application file
| 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}") | |