Antonio
commited on
Commit
·
b75c3f7
1
Parent(s):
d50fcbf
Tried to fix the video display
Browse files
app.py
CHANGED
@@ -212,13 +212,11 @@ def predict(video_file, video_model_name, audio_model_name, framework_name):
|
|
212 |
framework_function = decision_frameworks[framework_name]
|
213 |
consensus_label = framework_function(video_prediction, audio_prediction)
|
214 |
|
215 |
-
delete_files_in_directory(delete_directory_path)
|
216 |
-
|
217 |
return {
|
218 |
"Video Label": highest_video_emotion,
|
219 |
"Audio Label": highest_audio_emotion,
|
220 |
"Consensus Label": consensus_label,
|
221 |
-
"Video Path":
|
222 |
}
|
223 |
|
224 |
inputs = [
|
|
|
212 |
framework_function = decision_frameworks[framework_name]
|
213 |
consensus_label = framework_function(video_prediction, audio_prediction)
|
214 |
|
|
|
|
|
215 |
return {
|
216 |
"Video Label": highest_video_emotion,
|
217 |
"Audio Label": highest_audio_emotion,
|
218 |
"Consensus Label": consensus_label,
|
219 |
+
"Video Path": video_path # Update this line to return the correct video path
|
220 |
}
|
221 |
|
222 |
inputs = [
|