Spaces:
Running
Running
Moibe
commited on
Commit
•
06463de
1
Parent(s):
d125f21
Add func carga_consola
Browse files
app.py
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(input_video):
|
4 |
-
|
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 |
-
consola.value = "Hola mundo"
|
10 |
-
consola.update()
|
11 |
return input_video
|
12 |
|
|
|
|
|
|
|
|
|
13 |
#iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
|
14 |
#gr.show()
|
15 |
|
@@ -19,6 +17,8 @@ with gr.Blocks() as demo:
|
|
19 |
output = gr.Textbox()
|
20 |
btn = gr.Button("Run")
|
21 |
btn.click(greet, input, output)
|
|
|
22 |
consola = gr.Textbox()
|
|
|
23 |
|
24 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def greet(input_video):
|
4 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
return input_video
|
6 |
|
7 |
+
def carga_consola():
|
8 |
+
return "Hola Mundo"
|
9 |
+
|
10 |
+
|
11 |
#iface = gr.Interface(greet, gr.Video(height=200, width=200), "video")
|
12 |
#gr.show()
|
13 |
|
|
|
17 |
output = gr.Textbox()
|
18 |
btn = gr.Button("Run")
|
19 |
btn.click(greet, input, output)
|
20 |
+
|
21 |
consola = gr.Textbox()
|
22 |
+
demo.load(carga_consola, None, consola)
|
23 |
|
24 |
demo.launch()
|