abrar-adnan commited on
Commit
cb031e2
·
1 Parent(s): 89a385f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -126,13 +126,13 @@ def video_processing(video_file, encoded_video):
126
  surprise = surprise / emotion_count
127
  neutral = neutral / emotion_count
128
 
129
- angry = 'total anger percentage' + angry
130
- disgust = 'total disgust percentage' + disgust
131
- fear = 'total fear percentage' + fear
132
- happy = 'total happy percentage' + happy
133
- sad = 'total sad percentage' + sad
134
- surprise = 'total surprise percentage' + surprise
135
- neutral = 'total neutral percentage' + neutral
136
  print(f'total anger percentage = {angry}')
137
  print(f'total disgust percentage = {disgust}')
138
  print(f'total fear percentage = {fear}')
 
126
  surprise = surprise / emotion_count
127
  neutral = neutral / emotion_count
128
 
129
+ angry = 'total anger percentage' + str(angry)
130
+ disgust = 'total disgust percentage' + str(disgust)
131
+ fear = 'total fear percentage' + str(fear)
132
+ happy = 'total happy percentage' + str(happy)
133
+ sad = 'total sad percentage' + str(sad)
134
+ surprise = 'total surprise percentage' + str(surprise)
135
+ neutral = 'total neutral percentage' + str(neutral)
136
  print(f'total anger percentage = {angry}')
137
  print(f'total disgust percentage = {disgust}')
138
  print(f'total fear percentage = {fear}')