poornesh110 commited on
Commit
7ba3c53
1 Parent(s): a662c05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -333,7 +333,6 @@ with open('model_pkl', 'wb') as files:
333
 
334
 
335
  model = pickle.load(open('model_pkl', 'rb'))
336
- model.score(X_test,y_test)
337
 
338
 
339
  # In[42]:
@@ -376,7 +375,7 @@ def pneumonia(image):
376
 
377
  # Create new dataframe with selected columns
378
  DataFrame = df[cols]
379
-
380
  prediction = model.predict(DataFrame)
381
 
382
  if prediction == 0: # Determine the predicted class
 
333
 
334
 
335
  model = pickle.load(open('model_pkl', 'rb'))
 
336
 
337
 
338
  # In[42]:
 
375
 
376
  # Create new dataframe with selected columns
377
  DataFrame = df[cols]
378
+ model.fit(DataFrame)
379
  prediction = model.predict(DataFrame)
380
 
381
  if prediction == 0: # Determine the predicted class