Spaces:
Runtime error
Runtime error
Tokens as input
Browse files
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 |
|