Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ examples = [
|
|
57 |
"a cute white cat holding a sign that says hello world",
|
58 |
"an anime illustration of Steve Jobs",
|
59 |
"Create image of Modern house in minecraft style",
|
60 |
-
"
|
61 |
"Selfie photo of a wizard with long beard and purple robes, he is apparently in the middle of Tokyo. Probably taken from a phone.",
|
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 |
]
|
@@ -65,8 +65,8 @@ examples = [
|
|
65 |
# --- Gradio UI ---
|
66 |
with gr.Blocks() as demo:
|
67 |
with gr.Column(elem_id="app-container"):
|
68 |
-
gr.Markdown("# 🎨 Генератор картинок
|
69 |
-
gr.Markdown("Создавайте потрясающие изображения в режиме реального времени с помощью
|
70 |
|
71 |
with gr.Row():
|
72 |
with gr.Column(scale=2.5):
|
@@ -79,16 +79,9 @@ with gr.Blocks() as demo:
|
|
79 |
show_label=False,
|
80 |
container=False,
|
81 |
)
|
82 |
-
|
83 |
-
enhanceBtn = gr.Button("🚀 Улучшить изображение")
|
84 |
|
85 |
with gr.Column("Advanced Options"):
|
86 |
-
with gr.Row():
|
87 |
-
realtime = gr.Checkbox(label="Realtime Toggler", info="Если ДА, то используется больше GPU, но изображение создается в реальном времени.", value=False)
|
88 |
-
latency = gr.Text(label="Latency")
|
89 |
-
with gr.Row():
|
90 |
-
seed = gr.Number(label="Seed", value=42)
|
91 |
-
randomize_seed = gr.Checkbox(label="Randomize Seed", value=True)
|
92 |
with gr.Row():
|
93 |
width = gr.Slider(label="Ширина", minimum=256, maximum=MAX_IMAGE_SIZE, step=32, value=DEFAULT_WIDTH)
|
94 |
height = gr.Slider(label="Высота", minimum=256, maximum=MAX_IMAGE_SIZE, step=32, value=DEFAULT_HEIGHT)
|
|
|
57 |
"a cute white cat holding a sign that says hello world",
|
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 |
"Selfie photo of a wizard with long beard and purple robes, he is apparently in the middle of Tokyo. Probably taken from a phone.",
|
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 |
]
|
|
|
65 |
# --- Gradio UI ---
|
66 |
with gr.Blocks() as demo:
|
67 |
with gr.Column(elem_id="app-container"):
|
68 |
+
gr.Markdown("# 🎨 Генератор картинок с помощью Gemini 2.0 - <a href='https://gpt-chatbot.ru/' target='_blank'>GPT-ChatBot.ru</a>")
|
69 |
+
gr.Markdown("Создавайте потрясающие изображения в режиме реального времени с помощью Google DeepMind Gemini 2.0 Flash")
|
70 |
|
71 |
with gr.Row():
|
72 |
with gr.Column(scale=2.5):
|
|
|
79 |
show_label=False,
|
80 |
container=False,
|
81 |
)
|
82 |
+
enhanceBtn = gr.Button("🚀 Сгенерировать изображение")
|
|
|
83 |
|
84 |
with gr.Column("Advanced Options"):
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
with gr.Row():
|
86 |
width = gr.Slider(label="Ширина", minimum=256, maximum=MAX_IMAGE_SIZE, step=32, value=DEFAULT_WIDTH)
|
87 |
height = gr.Slider(label="Высота", minimum=256, maximum=MAX_IMAGE_SIZE, step=32, value=DEFAULT_HEIGHT)
|