Spaces:
Running
Running
Removed printing
Browse files
api.py
CHANGED
@@ -95,7 +95,6 @@ async def predict_emotions_keras(paragraph : Paragraph):
|
|
95 |
for text in text_list:
|
96 |
scores = keras_model(tf.constant([text]))['dense_1'][0]
|
97 |
emotion = [{'label': label, 'score': score} for label, score in zip(classes, scores.numpy())]
|
98 |
-
print(emotion)
|
99 |
predictions_per_text.append(emotion)
|
100 |
|
101 |
# Create a dictionary to aggregate scores for each label
|
|
|
95 |
for text in text_list:
|
96 |
scores = keras_model(tf.constant([text]))['dense_1'][0]
|
97 |
emotion = [{'label': label, 'score': score} for label, score in zip(classes, scores.numpy())]
|
|
|
98 |
predictions_per_text.append(emotion)
|
99 |
|
100 |
# Create a dictionary to aggregate scores for each label
|