Update app.py
Browse files
app.py
CHANGED
@@ -59,20 +59,21 @@ def predict(image, text_input):
|
|
59 |
_, prediction = torch.max(outputs, dim=1)
|
60 |
return prediction.item() # 1 for Malignant, 0 for Benign
|
61 |
|
62 |
-
# Enhanced UI with
|
63 |
with gr.Blocks(css="""
|
64 |
body {
|
65 |
-
|
66 |
-
background-size: cover;
|
67 |
}
|
68 |
.benign, .malignant {
|
69 |
background-color: white;
|
70 |
border: 1px solid lightgray;
|
71 |
padding: 10px;
|
72 |
border-radius: 5px;
|
|
|
73 |
}
|
74 |
.benign.correct, .malignant.correct {
|
75 |
background-color: lightgreen;
|
|
|
76 |
}
|
77 |
""") as demo:
|
78 |
gr.Markdown(
|
@@ -106,3 +107,4 @@ demo.launch()
|
|
106 |
|
107 |
|
108 |
|
|
|
|
59 |
_, prediction = torch.max(outputs, dim=1)
|
60 |
return prediction.item() # 1 for Malignant, 0 for Benign
|
61 |
|
62 |
+
# Enhanced UI with black text
|
63 |
with gr.Blocks(css="""
|
64 |
body {
|
65 |
+
color: black;
|
|
|
66 |
}
|
67 |
.benign, .malignant {
|
68 |
background-color: white;
|
69 |
border: 1px solid lightgray;
|
70 |
padding: 10px;
|
71 |
border-radius: 5px;
|
72 |
+
color: black;
|
73 |
}
|
74 |
.benign.correct, .malignant.correct {
|
75 |
background-color: lightgreen;
|
76 |
+
color: black;
|
77 |
}
|
78 |
""") as demo:
|
79 |
gr.Markdown(
|
|
|
107 |
|
108 |
|
109 |
|
110 |
+
|