Incostra commited on
Commit
925c9e5
Β·
verified Β·
1 Parent(s): 749d18d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -20,13 +20,9 @@ for path, url in [(MODEL_PATH, MODEL_URL), (DETECTOR_PATH, DETECTOR_URL)]:
20
  print(f"Downloaded to {path}")
21
 
22
  # ── Load TFLite interpreter (no OpenGL needed) ──
23
- try:
24
- import tflite_runtime.interpreter as tflite
25
- print("Using tflite_runtime")
26
- except ImportError:
27
- import tensorflow as tf
28
- tflite = tf.lite
29
- print("Using tensorflow.lite")
30
 
31
  detector_interp = tflite.Interpreter(model_path=DETECTOR_PATH)
32
  detector_interp.allocate_tensors()
 
20
  print(f"Downloaded to {path}")
21
 
22
  # ── Load TFLite interpreter (no OpenGL needed) ──
23
+ import tensorflow as tf
24
+ tflite = tf.lite
25
+ print("Using tensorflow.lite, TF version:", tf.__version__)
 
 
 
 
26
 
27
  detector_interp = tflite.Interpreter(model_path=DETECTOR_PATH)
28
  detector_interp.allocate_tensors()