Spaces:
Sleeping
Sleeping
structure change
Browse files
app.py
CHANGED
@@ -373,27 +373,26 @@ text-align: center;
|
|
373 |
with gr.Blocks(css=css) as demo:
|
374 |
|
375 |
with gr.Row():
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
with gr.Row():
|
380 |
with gr.Column():
|
381 |
gr.Markdown("<h3>Browse or Select from given Image</h3>", elem_id='info')
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
with gr.Column():
|
388 |
-
btn=gr.Button("Identify")
|
389 |
|
390 |
with gr.Column():
|
391 |
-
gr.
|
392 |
-
label=gr.Label("")
|
393 |
-
gr.Markdown("Other possible values")
|
394 |
-
bar = gr.BarPlot()
|
395 |
with gr.Row():
|
396 |
-
|
|
|
|
|
|
|
|
|
397 |
|
398 |
|
399 |
btn.click(predict_digit,inputs=[img_upload],outputs=[label,bar])
|
|
|
373 |
with gr.Blocks(css=css) as demo:
|
374 |
|
375 |
with gr.Row():
|
376 |
+
|
377 |
+
gr.Markdown("<h1>Skin Cancer Classifier</h1>", elem_id='title_head')
|
378 |
+
gr.Markdown("<h2>By Alok</h2>", elem_id="name_head")
|
379 |
with gr.Row():
|
380 |
with gr.Column():
|
381 |
gr.Markdown("<h3>Browse or Select from given Image</h3>", elem_id='info')
|
382 |
+
img_upload=gr.Image(type="pil")
|
383 |
+
with gr.Column():
|
384 |
+
clear=gr.ClearButton(img_upload)
|
385 |
+
with gr.Column():
|
386 |
+
btn=gr.Button("Identify")
|
|
|
|
|
387 |
|
388 |
with gr.Column():
|
389 |
+
gry=gr.Gallery(value=skin_images, columns=3, rows=2, show_label=False)
|
|
|
|
|
|
|
390 |
with gr.Row():
|
391 |
+
gr.Markdown("Most probable skin condition")
|
392 |
+
label=gr.Label("")
|
393 |
+
gr.Markdown("Other possible values")
|
394 |
+
bar = gr.BarPlot()
|
395 |
+
|
396 |
|
397 |
|
398 |
btn.click(predict_digit,inputs=[img_upload],outputs=[label,bar])
|