drkareemkamal commited on
Commit
b464a80
·
verified ·
1 Parent(s): c0ff9ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -7,6 +7,8 @@ model = tf.keras.models.load_model('Brain_tumor/')
7
  st.write('Model is loaded successfully')
8
 
9
  TEMP_DIR = 'temp'
 
 
10
 
11
  class_names = ['glioma', 'meningioma', 'notumor', 'pituitary']
12
 
 
7
  st.write('Model is loaded successfully')
8
 
9
  TEMP_DIR = 'temp'
10
+ if not os.path.exists(TEMP_DIR):
11
+ os.makedirs(TEMP_DIR)
12
 
13
  class_names = ['glioma', 'meningioma', 'notumor', 'pituitary']
14