deanna-emery commited on
Commit
9a13e28
1 Parent(s): beaa404
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -72,17 +72,17 @@ def translate(video_file):
72
  translation = tokenizer.batch_decode(tokens, skip_special_tokens=True)
73
 
74
  # Return dict {label:pred}
75
- return {"translation":translation}
76
 
77
  # Gradio App config
78
  title = "ASL Translation (MoViNet + T5)"
79
  examples = [
80
- ['videos/no.mp4'],
81
- ['videos/all.mp4'],
82
- ['videos/before.mp4'],
83
- ['videos/blue.mp4'],
84
- ['videos/white.mp4'],
85
- ['videos/accident2.mp4']
86
  ]
87
 
88
  # Gradio App interface
 
72
  translation = tokenizer.batch_decode(tokens, skip_special_tokens=True)
73
 
74
  # Return dict {label:pred}
75
+ return "translation: " + translation
76
 
77
  # Gradio App config
78
  title = "ASL Translation (MoViNet + T5)"
79
  examples = [
80
+ ['videos/no.mp4', 'no'],
81
+ ['videos/all.mp4', 'all'],
82
+ ['videos/before.mp4', 'before'],
83
+ ['videos/blue.mp4', 'blue'],
84
+ ['videos/white.mp4', 'white'],
85
+ ['videos/accident2.mp4', 'accident']
86
  ]
87
 
88
  # Gradio App interface