ankitkupadhyay
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -62,7 +62,7 @@ def predict(image, text_input):
|
|
62 |
# Enhanced UI with background image and color-coded prediction display
|
63 |
with gr.Blocks(css="""
|
64 |
body {
|
65 |
-
background: url('
|
66 |
background-size: cover;
|
67 |
}
|
68 |
.benign, .malignant {
|
@@ -88,10 +88,9 @@ with gr.Blocks(css="""
|
|
88 |
text_input = gr.Textbox(label="Clinical Information (e.g., patient age, symptoms)")
|
89 |
|
90 |
with gr.Column(scale=1):
|
|
|
91 |
benign_output = gr.HTML("<div class='benign'>Benign</div>")
|
92 |
malignant_output = gr.HTML("<div class='malignant'>Malignant</div>")
|
93 |
-
gr.Markdown("## Example:")
|
94 |
-
example_image = gr.Image(value="./skin_cancer_detection/Unknown-4.png", interactive=False)
|
95 |
|
96 |
def display_prediction(image, text_input):
|
97 |
prediction = predict(image, text_input)
|
|
|
62 |
# Enhanced UI with background image and color-coded prediction display
|
63 |
with gr.Blocks(css="""
|
64 |
body {
|
65 |
+
background: url('https://huggingface.co/spaces/ankitkupadhyay/skin_cancer_detection/blob/main/melanoma.png') no-repeat center center fixed;
|
66 |
background-size: cover;
|
67 |
}
|
68 |
.benign, .malignant {
|
|
|
88 |
text_input = gr.Textbox(label="Clinical Information (e.g., patient age, symptoms)")
|
89 |
|
90 |
with gr.Column(scale=1):
|
91 |
+
gr.Markdown("## PREDICTION RESULTS")
|
92 |
benign_output = gr.HTML("<div class='benign'>Benign</div>")
|
93 |
malignant_output = gr.HTML("<div class='malignant'>Malignant</div>")
|
|
|
|
|
94 |
|
95 |
def display_prediction(image, text_input):
|
96 |
prediction = predict(image, text_input)
|