Moibe commited on
Commit
68b760b
1 Parent(s): c5ca3b6
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ def getAccess(userfile):
15
 
16
  return tokens
17
 
18
- def debitToken(userfile, cuantos):
19
 
20
  #Genera conexi贸n inicial.
21
  sshListo, sftpListo = avaimet.conecta()
@@ -42,6 +42,6 @@ with gr.Blocks() as demo:
42
  text_output = gr.Textbox()
43
 
44
  access_btn.click(fn=getAccess, inputs=text_input, outputs=text_output, api_name="getTokens")
45
- debit_btn.click(fn=debitToken, inputs=[text_input, number_input], outputs=text_output, api_name="debitTokens")
46
 
47
  demo.launch()
 
15
 
16
  return tokens
17
 
18
+ def debitTokens(userfile, cuantos):
19
 
20
  #Genera conexi贸n inicial.
21
  sshListo, sftpListo = avaimet.conecta()
 
42
  text_output = gr.Textbox()
43
 
44
  access_btn.click(fn=getAccess, inputs=text_input, outputs=text_output, api_name="getTokens")
45
+ debit_btn.click(fn=debitTokens, inputs=[text_input, number_input], outputs=text_output, api_name="debitTokens")
46
 
47
  demo.launch()