Update UI/Main.py
Browse files- UI/Main.py +5 -6
UI/Main.py
CHANGED
|
@@ -32,9 +32,11 @@ with gr.Blocks(css="footer{display:none !important}") as block:
|
|
| 32 |
gr.Markdown("## Yüksek Gerilim Hattı Kablo ve Direk Tespit ve Segmentasyon Uygulaması - Demo")
|
| 33 |
|
| 34 |
with gr.Row():
|
| 35 |
-
|
| 36 |
with gr.Column():
|
| 37 |
inputImage = gr.Image(label="Fotoğraf")
|
|
|
|
|
|
|
|
|
|
| 38 |
with gr.Accordion("Demo Görsellerden Seçebilirsiniz", open=False):
|
| 39 |
imageGallery = gr.Examples(
|
| 40 |
examples=[
|
|
@@ -45,13 +47,10 @@ with gr.Blocks(css="footer{display:none !important}") as block:
|
|
| 45 |
cache_examples=False,
|
| 46 |
examples_per_page=5
|
| 47 |
)
|
| 48 |
-
|
| 49 |
-
with gr.Column():
|
| 50 |
-
thresholdSlider = gr.Slider(0, 1, value=0.5, label="Model Eşik Değeri", info="0 ve 1 arası seçiniz.")
|
| 51 |
-
|
| 52 |
processButton = gr.Button("Tespit Et")
|
| 53 |
|
| 54 |
-
|
| 55 |
gr.HTML("</hr>")
|
| 56 |
processedImageGallery = gr.Gallery(
|
| 57 |
label="Sonuçlar",
|
|
|
|
| 32 |
gr.Markdown("## Yüksek Gerilim Hattı Kablo ve Direk Tespit ve Segmentasyon Uygulaması - Demo")
|
| 33 |
|
| 34 |
with gr.Row():
|
|
|
|
| 35 |
with gr.Column():
|
| 36 |
inputImage = gr.Image(label="Fotoğraf")
|
| 37 |
+
|
| 38 |
+
with gr.Column():
|
| 39 |
+
thresholdSlider = gr.Slider(0, 1, value=0.5, label="Model Eşik Değeri", info="0 ve 1 arası seçiniz.")
|
| 40 |
with gr.Accordion("Demo Görsellerden Seçebilirsiniz", open=False):
|
| 41 |
imageGallery = gr.Examples(
|
| 42 |
examples=[
|
|
|
|
| 47 |
cache_examples=False,
|
| 48 |
examples_per_page=5
|
| 49 |
)
|
| 50 |
+
results = gr.Textbox(label="Log")
|
|
|
|
|
|
|
|
|
|
| 51 |
processButton = gr.Button("Tespit Et")
|
| 52 |
|
| 53 |
+
|
| 54 |
gr.HTML("</hr>")
|
| 55 |
processedImageGallery = gr.Gallery(
|
| 56 |
label="Sonuçlar",
|