Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,7 @@
|
|
1 |
-
import
|
2 |
|
3 |
# Create a space.
|
4 |
-
space =
|
5 |
-
|
6 |
-
# Install the `ffmpeg-input` module in the space.
|
7 |
-
space.install_package("ffmpeg-input")
|
8 |
|
9 |
# Upload the video file to the space.
|
10 |
space.upload_file("/path/to/NEARHUBanimation.mp4")
|
@@ -20,4 +17,4 @@ demo = gr.Interface(transcode_video,
|
|
20 |
cache_examples=True)
|
21 |
|
22 |
if __name__ == "__main__":
|
23 |
-
demo.launch()
|
|
|
1 |
+
import gradio as gr
|
2 |
|
3 |
# Create a space.
|
4 |
+
space = gr.create_space("my-space")
|
|
|
|
|
|
|
5 |
|
6 |
# Upload the video file to the space.
|
7 |
space.upload_file("/path/to/NEARHUBanimation.mp4")
|
|
|
17 |
cache_examples=True)
|
18 |
|
19 |
if __name__ == "__main__":
|
20 |
+
demo.launch()
|