Jeffgold commited on
Commit
b66bc3b
·
1 Parent(s): 0205b95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -28,15 +28,12 @@ video_files = [
28
  "/path/to/NEARHUBanimation.mp4",
29
  ]
30
 
31
- # Transcode the video file.
32
- space.run_script("transcode_video.py")
33
-
34
- # Launch a huggingface interface that allows you to play the transcoded video file.
35
- demo = hfs.Interface(transcode_video,
36
- hfs.components.Video(),
37
  "playable_video",
38
  examples=video_files,
39
  cache_examples=True)
40
 
41
  if __name__ == "__main__":
42
- demo.launch()
 
28
  "/path/to/NEARHUBanimation.mp4",
29
  ]
30
 
31
+ # Launch a gradio interface that allows you to play the transcoded video file.
32
+ demo = gr.Interface(transcode_video,
33
+ gr.components.Video(),
 
 
 
34
  "playable_video",
35
  examples=video_files,
36
  cache_examples=True)
37
 
38
  if __name__ == "__main__":
39
+ demo.launch()