File size: 502 Bytes
1f5f680
 
35e7909
1bc6f91
f4ea824
 
1bc6f91
f4ea824
35e7909
1f5f680
c5d14f6
1d9da87
c5d14f6
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr

def greet(input_video):
    print("Hola")
    #video_origen = input_video.value
    #print(video_origen)
    # Guardar el video en un archivo
    #video_origen.save("video_guardado.mp4")
    return input_video

#iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
#gr.show()

with gr.Blocks() as demo:
    with gr.Row():
        input = gr.Textbox()
        output = gr.Textbox()
    btn = gr.Button("Run")
    btn.click(greet, input, output)

    #iface.launch()