riu-rd commited on
Commit
c4a6e3c
1 Parent(s): 8fb8668

Removed printing

Browse files
Files changed (1) hide show
  1. api.py +0 -1
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