Spaces:
Sleeping
Sleeping
Moibe commited on
Commit 路
68b760b
1
Parent(s): c5ca3b6
plural
Browse files
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def getAccess(userfile):
|
|
| 15 |
|
| 16 |
return tokens
|
| 17 |
|
| 18 |
-
def
|
| 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=
|
| 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()
|