Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,13 +24,14 @@ footer {visibility: hidden !important;}
|
|
24 |
# Создание интерфейса с помощью Gradio
|
25 |
with gr.Blocks(css=css, theme='YTheme/Sketch') as demo:
|
26 |
with gr.Row():
|
27 |
-
with gr.
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
|
|
34 |
|
35 |
submit_btn.click(fn=generate_image, inputs=[prompt_input, code], outputs=image_output)
|
36 |
|
|
|
24 |
# Создание интерфейса с помощью Gradio
|
25 |
with gr.Blocks(css=css, theme='YTheme/Sketch') as demo:
|
26 |
with gr.Row():
|
27 |
+
with gr.Column():
|
28 |
+
with gr.Row():
|
29 |
+
code = gr.Textbox(label="Ключ доступа", type="password")
|
30 |
+
with gr.Row():
|
31 |
+
prompt_input = gr.Textbox(label="Описание изображения")
|
32 |
+
submit_btn = gr.Button("Генерация", variant='primary')
|
33 |
+
with gr.Column():
|
34 |
+
image_output = gr.Image(label="Изображение")
|
35 |
|
36 |
submit_btn.click(fn=generate_image, inputs=[prompt_input, code], outputs=image_output)
|
37 |
|