aleksfinn23
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -58,16 +58,15 @@ examples = [
|
|
58 |
"an anime illustration of Steve Jobs",
|
59 |
"Create image of Modern house in minecraft style",
|
60 |
"photo of a woman on the beach, shot from above. She is facing the sea, while wearing a white dress. She has long blonde hair",
|
61 |
-
|
62 |
-
"Photo of a young woman with long, wavy brown hair tied in a bun and glasses. She has a fair complexion and is wearing subtle makeup, emphasizing her eyes and lips. She is dressed in a black top. The background appears to be an urban setting with a building facade, and the sunlight casts a warm glow on her face.",
|
63 |
]
|
64 |
|
65 |
# --- Gradio UI ---
|
66 |
with gr.Blocks() as demo:
|
67 |
with gr.Column(elem_id="app-container"):
|
68 |
-
gr.Markdown("# 🎨
|
69 |
-
gr.Markdown("
|
70 |
-
gr.Markdown("<span style='color: red;'
|
71 |
|
72 |
with gr.Row():
|
73 |
with gr.Column(scale=2.5):
|
@@ -75,13 +74,13 @@ with gr.Blocks() as demo:
|
|
75 |
with gr.Column(scale=1):
|
76 |
prompt = gr.Text(
|
77 |
label="Prompt",
|
78 |
-
placeholder="
|
79 |
lines=3,
|
80 |
show_label=False,
|
81 |
container=False,
|
82 |
)
|
83 |
-
generateBtn = gr.Button("🖼️
|
84 |
-
enhanceBtn = gr.Button("🚀
|
85 |
|
86 |
with gr.Column("Advanced Options"):
|
87 |
with gr.Row():
|
|
|
58 |
"an anime illustration of Steve Jobs",
|
59 |
"Create image of Modern house in minecraft style",
|
60 |
"photo of a woman on the beach, shot from above. She is facing the sea, while wearing a white dress. She has long blonde hair",
|
61 |
+
|
|
|
62 |
]
|
63 |
|
64 |
# --- Gradio UI ---
|
65 |
with gr.Blocks() as demo:
|
66 |
with gr.Column(elem_id="app-container"):
|
67 |
+
gr.Markdown("# 🎨 FLUX модель генерации изображений")
|
68 |
+
gr.Markdown("Генерирует изображения в реальном времени")
|
69 |
+
gr.Markdown("<span style='color: red;'>Внимание: запросы к модели лучше делать на английском языке (можно пользоваться переводчиком). Поддержка русского языка будет добавлена позднее.</span>")
|
70 |
|
71 |
with gr.Row():
|
72 |
with gr.Column(scale=2.5):
|
|
|
74 |
with gr.Column(scale=1):
|
75 |
prompt = gr.Text(
|
76 |
label="Prompt",
|
77 |
+
placeholder="Опишите желаемое изображение (на английском языке)...",
|
78 |
lines=3,
|
79 |
show_label=False,
|
80 |
container=False,
|
81 |
)
|
82 |
+
generateBtn = gr.Button("🖼️ Сгенерировать изображение")
|
83 |
+
enhanceBtn = gr.Button("🚀 Усилить изображение")
|
84 |
|
85 |
with gr.Column("Advanced Options"):
|
86 |
with gr.Row():
|