Spaces:
Sleeping
Sleeping
Logout button
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def perform(input1, input2):
|
|
54 |
print("No tienes suficientes tokens...")
|
55 |
info_window = "Out of tokens..."
|
56 |
path = 'no-result.png'
|
57 |
-
return
|
58 |
|
59 |
print(f"El path final fue {path}, si es no-result, no debites y controla la info window.")
|
60 |
print(f"El type de path es: ", type(path))
|
@@ -82,7 +82,7 @@ def perform(input1, input2):
|
|
82 |
#No se hizo un proceso, por lo tanto no debitaremos.
|
83 |
#En el futuro, como regla de negocio, podría cambiar y que si debitemos.
|
84 |
|
85 |
-
return
|
86 |
|
87 |
def cambio():
|
88 |
|
@@ -110,7 +110,7 @@ destination_image = gr.Image(label="Destination")
|
|
110 |
result_image = gr.Image(label="Blend Result")
|
111 |
txt_console = gr.Textbox(label="Console", value="AI Engine Ready...", interactive=False)
|
112 |
lbl_console = gr.Label(label="Console", value="AI Engine ready...", container=True)
|
113 |
-
btn_buy = gr.
|
114 |
#btn_buy.click(fn=cambio, outputs=mrk_title)
|
115 |
|
116 |
#Gradio themes:
|
@@ -134,7 +134,7 @@ with gr.Blocks(theme=gr.themes.Base(), css="footer {visibility: hidden}") as mai
|
|
134 |
fn=perform,
|
135 |
title="",
|
136 |
inputs=[source_image, destination_image],
|
137 |
-
outputs=[result_image,
|
138 |
)
|
139 |
|
140 |
main.launch(auth=authenticate)
|
|
|
54 |
print("No tienes suficientes tokens...")
|
55 |
info_window = "Out of tokens..."
|
56 |
path = 'no-result.png'
|
57 |
+
return path, info_window, btn_buy
|
58 |
|
59 |
print(f"El path final fue {path}, si es no-result, no debites y controla la info window.")
|
60 |
print(f"El type de path es: ", type(path))
|
|
|
82 |
#No se hizo un proceso, por lo tanto no debitaremos.
|
83 |
#En el futuro, como regla de negocio, podría cambiar y que si debitemos.
|
84 |
|
85 |
+
return path, info_window, btn_buy
|
86 |
|
87 |
def cambio():
|
88 |
|
|
|
110 |
result_image = gr.Image(label="Blend Result")
|
111 |
txt_console = gr.Textbox(label="Console", value="AI Engine Ready...", interactive=False)
|
112 |
lbl_console = gr.Label(label="Console", value="AI Engine ready...", container=True)
|
113 |
+
btn_buy = gr.LogoutButton("Buy More", visible=True, size='lg')
|
114 |
#btn_buy.click(fn=cambio, outputs=mrk_title)
|
115 |
|
116 |
#Gradio themes:
|
|
|
134 |
fn=perform,
|
135 |
title="",
|
136 |
inputs=[source_image, destination_image],
|
137 |
+
outputs=[result_image, lbl_console, btn_buy],
|
138 |
)
|
139 |
|
140 |
main.launch(auth=authenticate)
|