Spaces:
Sleeping
Sleeping
Fix no state as input
Browse files
app.py
CHANGED
@@ -31,10 +31,8 @@ def authenticate(username, password):
|
|
31 |
return False
|
32 |
|
33 |
#Funci贸n principal
|
34 |
-
def perform(input1, input2
|
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:
|
40 |
gr.State.tokens = sulkuPypi.getTokens(encrypter.encripta(gr.State.usuario).decode("utf-8")) #Todo en una l铆nea.
|
@@ -146,7 +144,7 @@ with gr.Blocks(theme=gr.themes.Base(), css="footer {visibility: hidden}") as mai
|
|
146 |
demo = gr.Interface(
|
147 |
fn=perform,
|
148 |
title="",
|
149 |
-
inputs=[source_image, destination_image
|
150 |
outputs=[result_image, lbl_console, btn_buy],
|
151 |
)
|
152 |
|
|
|
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:
|
38 |
gr.State.tokens = sulkuPypi.getTokens(encrypter.encripta(gr.State.usuario).decode("utf-8")) #Todo en una l铆nea.
|
|
|
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 |
|