Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,18 @@ import cv2
|
|
6 |
import numpy as np
|
7 |
from tensorflow.keras.models import load_model
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
# Load the pre-trained model
|
10 |
new_model = load_model('imageclassifier.h5')
|
11 |
|
|
|
6 |
import numpy as np
|
7 |
from tensorflow.keras.models import load_model
|
8 |
|
9 |
+
|
10 |
+
|
11 |
+
import subprocess
|
12 |
+
|
13 |
+
# Command to check TensorFlow version
|
14 |
+
command = "pip show tensorflow"
|
15 |
+
|
16 |
+
# Execute the command
|
17 |
+
result = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
|
18 |
+
|
19 |
+
print(result)
|
20 |
+
|
21 |
# Load the pre-trained model
|
22 |
new_model = load_model('imageclassifier.h5')
|
23 |
|