Update app.py
Browse files
app.py
CHANGED
@@ -149,10 +149,11 @@ with gr.Blocks(css=css, theme="YTheme/KidsShool") as dalle:
|
|
149 |
with gr.Row():
|
150 |
with gr.Column(elem_id="prompt-container"):
|
151 |
with gr.Row():
|
152 |
-
text_prompt = gr.Textbox(label="
|
|
|
153 |
with gr.Row():
|
154 |
model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=list(mmodels.keys()))
|
155 |
-
|
156 |
|
157 |
|
158 |
with gr.Tab("Расширенные настройки"):
|
@@ -187,6 +188,6 @@ with gr.Blocks(css=css, theme="YTheme/KidsShool") as dalle:
|
|
187 |
with gr.Row():
|
188 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
189 |
|
190 |
-
text_button.click(
|
191 |
|
192 |
dalle.launch(show_api=False, share=False)
|
|
|
149 |
with gr.Row():
|
150 |
with gr.Column(elem_id="prompt-container"):
|
151 |
with gr.Row():
|
152 |
+
text_prompt = gr.Textbox(label="Описание изображения", placeholder="Реалистичная кошка сидит на подоконнике...", lines=3, elem_id="prompt-text-input")
|
153 |
+
"""
|
154 |
with gr.Row():
|
155 |
model = gr.Radio(label="Модель", value="DALL-E 3 XL", choices=list(mmodels.keys()))
|
156 |
+
"""
|
157 |
|
158 |
|
159 |
with gr.Tab("Расширенные настройки"):
|
|
|
188 |
with gr.Row():
|
189 |
image_output = gr.Image(type="pil", label="Изображение", elem_id="gallery")
|
190 |
|
191 |
+
text_button.click(query, inputs=[gpt, text_prompt, negative_prompt], outputs=image_output)
|
192 |
|
193 |
dalle.launch(show_api=False, share=False)
|