Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 24 |
-
|
| 25 |
-
|
| 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()
|