Spaces:
Running
Running
Moibe
commited on
Commit
·
1bc6f91
1
Parent(s):
39a29d7
Testing video object and console
Browse files
app.py
CHANGED
|
@@ -1,6 +1,11 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(input_video):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
return input_video
|
| 5 |
|
| 6 |
iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
def greet(input_video):
|
| 4 |
+
print("Hola")
|
| 5 |
+
video_origen = input_video.value
|
| 6 |
+
print(video_origen)
|
| 7 |
+
# Guardar el video en un archivo
|
| 8 |
+
video_origen.save("video_guardado.mp4")
|
| 9 |
return input_video
|
| 10 |
|
| 11 |
iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
|