Update app.py
Browse files
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
|