yufengzhu commited on
Commit
663b1ec
·
1 Parent(s): 4a6978f
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -45,9 +45,14 @@ def post(
45
 
46
  translated_text = r.json()['data']['translated_text']
47
  result_video = r.json()['data']['result_video']
 
48
  print(result_video)
49
- print(type(result_video))
50
  print('-----------------')
 
 
 
 
51
  return translated_text, result_video
52
 
53
  def main():
 
45
 
46
  translated_text = r.json()['data']['translated_text']
47
  result_video = r.json()['data']['result_video']
48
+ frames = r.json()['data']['frames']
49
  print(result_video)
50
+ print(frames)
51
  print('-----------------')
52
+ writer = iio.get_writer(result_video, fps=fps)
53
+ for frame in frames:
54
+ writer.append_data(frame)
55
+ writer.close()
56
  return translated_text, result_video
57
 
58
  def main():