Spaces:
Runtime error
Runtime error
rafaldembski
commited on
Commit
•
8fa55d0
1
Parent(s):
b5eda20
Update app.py
Browse files
app.py
CHANGED
@@ -174,19 +174,18 @@ with gr.Blocks(theme=gr.themes.Monochrome(), css=css) as demo:
|
|
174 |
with gr.Row():
|
175 |
language_selector = gr.Dropdown(choices=["pl", "en", "de"], value="en", label="Wybierz język / Select Language / Sprache auswählen", show_label=True)
|
176 |
|
177 |
-
|
178 |
-
|
179 |
-
|
|
|
|
|
180 |
|
181 |
-
|
182 |
-
|
183 |
-
gr.Image("logo.png", elem_id="logo-img", show_label=False, show_share_button=False, show_download_button=False)
|
184 |
-
inputs = gr.Image(type='filepath', label="Wybierz obraz")
|
185 |
-
outputs = [gr.Image(label="Wynik (z przezroczystością)"), gr.Image(label="Maska")]
|
186 |
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
|
191 |
language_selector.change(
|
192 |
fn=change_language,
|
|
|
174 |
with gr.Row():
|
175 |
language_selector = gr.Dropdown(choices=["pl", "en", "de"], value="en", label="Wybierz język / Select Language / Sprache auswählen", show_label=True)
|
176 |
|
177 |
+
with gr.Column(elem_id="col-container"):
|
178 |
+
gr.Image("logo.png", elem_id="logo-img", show_label=False, show_share_button=False, show_download_button=False)
|
179 |
+
title = gr.Markdown(translations["en"]["title"])
|
180 |
+
description = gr.Markdown(translations["en"]["description"])
|
181 |
+
article = gr.Markdown(translations["en"]["article"])
|
182 |
|
183 |
+
inputs = gr.Image(type='filepath', label="Wybierz obraz")
|
184 |
+
outputs = [gr.Image(label="Wynik (z przezroczystością)"), gr.Image(label="Maska")]
|
|
|
|
|
|
|
185 |
|
186 |
+
run_button = gr.Button("Segmentuj", scale=0)
|
187 |
+
|
188 |
+
run_button.click(fn=inference, inputs=inputs, outputs=outputs)
|
189 |
|
190 |
language_selector.change(
|
191 |
fn=change_language,
|