Spaces:
Sleeping
Sleeping
Inputs and outputs order
Browse files
app.py
CHANGED
@@ -91,10 +91,21 @@ def perform(input1, input2):
|
|
91 |
# capsule = encrypter.encripta(gr.State.usuario).decode("utf-8") #decode es para quitarle el 'b
|
92 |
# gr.State.capsule = capsule
|
93 |
# gr.State.tokens = 20
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
lbl_msg = gr.Label("AI Engine ready...")
|
95 |
-
btn_buy = gr.Button("Buy More", visible=
|
96 |
-
|
97 |
-
textbox = gr.Textbox("Nuevo textbox", interactive=False)
|
98 |
texto_del_markdown = """
|
99 |
# Hello World! {variable}
|
100 |
Start typing below to see the output.
|
@@ -123,7 +134,7 @@ with gr.Blocks(css="footer {visibility: hidden}", theme=gr.themes.Base()) as mai
|
|
123 |
|
124 |
mrk_title = gr.Markdown(texto_del_markdown)
|
125 |
mrk_title = gr.Markdown(texto_del_markdown)
|
126 |
-
nueva_label
|
127 |
|
128 |
|
129 |
#lbl_msg.change(fn=cambio, lbl_msg)
|
@@ -134,7 +145,7 @@ with gr.Blocks(css="footer {visibility: hidden}", theme=gr.themes.Base()) as mai
|
|
134 |
demo = gr.Interface(
|
135 |
fn=perform,
|
136 |
title="",
|
137 |
-
inputs=[
|
138 |
outputs=[textbox, result_image,lbl_msg, btn_buy],
|
139 |
)
|
140 |
|
|
|
91 |
# capsule = encrypter.encripta(gr.State.usuario).decode("utf-8") #decode es para quitarle el 'b
|
92 |
# gr.State.capsule = capsule
|
93 |
# gr.State.tokens = 20
|
94 |
+
|
95 |
+
#Headers
|
96 |
+
nueva_label = gr.Label("Credits")
|
97 |
+
|
98 |
+
|
99 |
+
#Inputs
|
100 |
+
source_image = gr.Image(label="Source")
|
101 |
+
destination_image = gr.Image(label="Destination")
|
102 |
+
|
103 |
+
#Outputs
|
104 |
+
result_image = gr.Image(label="Blend")
|
105 |
lbl_msg = gr.Label("AI Engine ready...")
|
106 |
+
btn_buy = gr.Button("Buy More", visible=False, size='lg')
|
107 |
+
|
108 |
+
textbox = gr.Textbox(label="Console", value="Nuevo textbox", interactive=False)
|
109 |
texto_del_markdown = """
|
110 |
# Hello World! {variable}
|
111 |
Start typing below to see the output.
|
|
|
134 |
|
135 |
mrk_title = gr.Markdown(texto_del_markdown)
|
136 |
mrk_title = gr.Markdown(texto_del_markdown)
|
137 |
+
nueva_label
|
138 |
|
139 |
|
140 |
#lbl_msg.change(fn=cambio, lbl_msg)
|
|
|
145 |
demo = gr.Interface(
|
146 |
fn=perform,
|
147 |
title="",
|
148 |
+
inputs=[source_image, destination_image],
|
149 |
outputs=[textbox, result_image,lbl_msg, btn_buy],
|
150 |
)
|
151 |
|