Spaces:
vztu
/
Runtime error

vztu commited on
Commit
33dc3f0
·
verified ·
1 Parent(s): c305fd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -201,7 +201,10 @@ def inference_one_video(input_video):
201
  ]
202
 
203
  image_path = create_bar_chart(normalized_scores, comparisons)
204
- return image_path, pred_score["semantic"], pred_score["technical"], pred_score["aesthetic"], pred_score["overall"]
 
 
 
205
 
206
  # Define the input and output types for Gradio using the new API
207
  video_input = gr.Video(label="Input Video")
 
201
  ]
202
 
203
  image_path = create_bar_chart(normalized_scores, comparisons)
204
+ return image_path, normalized_scores[0] + ' (' + comparisons[0] + ')', \
205
+ normalized_scores[1] + ' (' + comparisons[1] + ')', \
206
+ normalized_scores[2] + ' (' + comparisons[2] + ')', \
207
+ normalized_scores[3] + ' (' + comparisons[3] + ')'
208
 
209
  # Define the input and output types for Gradio using the new API
210
  video_input = gr.Video(label="Input Video")