Spaces:
Running
Running
Moibe
commited on
Commit
·
6b2b610
1
Parent(s):
691d368
Interface to Blocks
Browse files
app.py
CHANGED
@@ -23,6 +23,15 @@ def print():
|
|
23 |
|
24 |
return "Hola Mundo"
|
25 |
|
26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
-
|
|
|
|
|
|
|
|
23 |
|
24 |
return "Hola Mundo"
|
25 |
|
26 |
+
with gr.Blocks() as demo:
|
27 |
+
with gr.Row():
|
28 |
+
with gr.Column():
|
29 |
+
text_input = gr.Textbox()
|
30 |
+
enviar_btn = gr.Button(value="Submit")
|
31 |
+
with gr.Column():
|
32 |
+
text_output = gr.Textbox()
|
33 |
|
34 |
+
enviar_btn.click(fn=getAccess, inputs="text", outputs="text", api_name="entrar")
|
35 |
+
|
36 |
+
|
37 |
+
demo.launch()
|