Spaces:
Running
Running
Moibe
commited on
Commit
·
641c2e2
1
Parent(s):
91eed1f
Twiced Api
Browse files
app.py
CHANGED
@@ -27,10 +27,12 @@ with gr.Blocks() as demo:
|
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
text_input = gr.Textbox()
|
30 |
-
|
|
|
31 |
with gr.Column():
|
32 |
text_output = gr.Textbox()
|
33 |
|
34 |
-
|
|
|
35 |
|
36 |
demo.launch()
|
|
|
27 |
with gr.Row():
|
28 |
with gr.Column():
|
29 |
text_input = gr.Textbox()
|
30 |
+
access_btn = gr.Button(value="Submit")
|
31 |
+
debit_btn = gr.Button(value="Submit")
|
32 |
with gr.Column():
|
33 |
text_output = gr.Textbox()
|
34 |
|
35 |
+
access_btn.click(fn=getAccess, inputs=text_input, outputs=text_output, api_name="entrar")
|
36 |
+
debit_btn.click(fn=print, inputs=text_input, outputs=text_output, api_name="print")
|
37 |
|
38 |
demo.launch()
|