OmarEllethy commited on
Commit
d75a914
·
verified ·
1 Parent(s): 4f8ccd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,5 +1,4 @@
1
  import subprocess
2
- import tensorflow as tf
3
  import joblib
4
  import numpy as np
5
  from PIL import Image
@@ -28,6 +27,9 @@ libraries = [
28
  for library in libraries:
29
  install_package(library)
30
 
 
 
 
31
  # Load the pre-trained TensorFlow model
32
  model = tf.keras.models.load_model("imageclassifier.h5")
33
 
 
1
  import subprocess
 
2
  import joblib
3
  import numpy as np
4
  from PIL import Image
 
27
  for library in libraries:
28
  install_package(library)
29
 
30
+ # Now that TensorFlow and other libraries are installed, import them
31
+ import tensorflow as tf
32
+
33
  # Load the pre-trained TensorFlow model
34
  model = tf.keras.models.load_model("imageclassifier.h5")
35