Moibe commited on
Commit
1b4d895
1 Parent(s): 53121ba

Tokens as input

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -31,7 +31,9 @@ def authenticate(username, password):
31
  return False
32
 
33
  #Función principal
34
- def perform(input1, input2):
 
 
35
 
36
  print("Estando en perform182, la cantidad de tokens es: ", gr.State.tokens)
37
  #Revisaremos de nuevo:
@@ -144,7 +146,7 @@ with gr.Blocks(theme=gr.themes.Base(), css="footer {visibility: hidden}") as mai
144
  demo = gr.Interface(
145
  fn=perform,
146
  title="",
147
- inputs=[source_image, destination_image],
148
  outputs=[result_image, lbl_console, btn_buy],
149
  )
150
 
 
31
  return False
32
 
33
  #Función principal
34
+ def perform(input1, input2, tokens):
35
+
36
+ print("Éste es el input de tokens que recibí:", tokens)
37
 
38
  print("Estando en perform182, la cantidad de tokens es: ", gr.State.tokens)
39
  #Revisaremos de nuevo:
 
146
  demo = gr.Interface(
147
  fn=perform,
148
  title="",
149
+ inputs=[source_image, destination_image, gr.State.tokens],
150
  outputs=[result_image, lbl_console, btn_buy],
151
  )
152