Spaces:
vztu
/
Runtime error

vztu commited on
Commit
2004019
1 Parent(s): 33dc3f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -201,10 +201,10 @@ def inference_one_video(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")
 
201
  ]
202
 
203
  image_path = create_bar_chart(normalized_scores, comparisons)
204
+ return image_path, str(normalized_scores[0]) + ' (' + comparisons[0] + ')', \
205
+ str(normalized_scores[1]) + ' (' + comparisons[1] + ')', \
206
+ str(normalized_scores[2]) + ' (' + comparisons[2] + ')', \
207
+ str(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")