wizzseen commited on
Commit
9ef79c5
·
verified ·
1 Parent(s): 032f923

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
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