RoAr777 commited on
Commit
2717207
1 Parent(s): 1ad01ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -21,6 +21,7 @@ def preprocess_image(image):
21
 
22
  # Define function to predict emotion and generate confidence bar chart
23
  def predict_emotion(image):
 
24
  # Preprocess the image
25
  processed_image = preprocess_image(image)
26
  # Predict the emotion
 
21
 
22
  # Define function to predict emotion and generate confidence bar chart
23
  def predict_emotion(image):
24
+ plt.clf()
25
  # Preprocess the image
26
  processed_image = preprocess_image(image)
27
  # Predict the emotion