Moibe commited on
Commit
641c2e2
·
1 Parent(s): 91eed1f

Twiced Api

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- enviar_btn = gr.Button(value="Submit")
 
31
  with gr.Column():
32
  text_output = gr.Textbox()
33
 
34
- enviar_btn.click(fn=getAccess, inputs=text_input, outputs=text_output, api_name="entrar")
 
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()