Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -80,32 +80,32 @@ css_url = "https://neurixyufi-aihub.static.hf.space/style.css"
|
|
80 |
|
81 |
# Получение CSS по ссылке
|
82 |
response = requests.get(css_url)
|
83 |
-
css = response.text + " .gradio-container{max-width: 700px !important} h1{text-align:center} #
|
84 |
|
85 |
# Create the Gradio interface
|
86 |
with gr.Blocks(css=css) as demo:
|
87 |
with gr.Column(elem_id="col-container"):
|
88 |
-
gr.Markdown("#
|
89 |
|
90 |
with gr.Row():
|
91 |
with gr.Column():
|
92 |
input_image = gr.Image(
|
93 |
-
label="
|
94 |
type="pil"
|
95 |
)
|
96 |
scale = gr.Slider(
|
97 |
-
label="
|
98 |
minimum=0.0,
|
99 |
maximum=1.0,
|
100 |
step=0.1,
|
101 |
value=0.7,
|
102 |
)
|
103 |
prompt = gr.Text(
|
104 |
-
label="
|
105 |
max_lines=1,
|
106 |
-
placeholder="Введите ваш запрос",
|
107 |
)
|
108 |
-
run_button = gr.Button("
|
109 |
|
110 |
with gr.Column():
|
111 |
result = gr.Image(label="Результат")
|
|
|
80 |
|
81 |
# Получение CSS по ссылке
|
82 |
response = requests.get(css_url)
|
83 |
+
css = response.text + " .gradio-container{max-width: 700px !important} h1{text-align:center} #col-container { margin: 0 auto; max-width: 960px; }"
|
84 |
|
85 |
# Create the Gradio interface
|
86 |
with gr.Blocks(css=css) as demo:
|
87 |
with gr.Column(elem_id="col-container"):
|
88 |
+
gr.Markdown("# Ии Редактор")
|
89 |
|
90 |
with gr.Row():
|
91 |
with gr.Column():
|
92 |
input_image = gr.Image(
|
93 |
+
label="Входное изображение",
|
94 |
type="pil"
|
95 |
)
|
96 |
scale = gr.Slider(
|
97 |
+
label="Схожесть с оригиналом",
|
98 |
minimum=0.0,
|
99 |
maximum=1.0,
|
100 |
step=0.1,
|
101 |
value=0.7,
|
102 |
)
|
103 |
prompt = gr.Text(
|
104 |
+
label="Описание изображения",
|
105 |
max_lines=1,
|
106 |
+
placeholder="Введите ваш запрос (Например: Сделай в аниме стиле)",
|
107 |
)
|
108 |
+
run_button = gr.Button("Изменить", variant="primary")
|
109 |
|
110 |
with gr.Column():
|
111 |
result = gr.Image(label="Результат")
|