Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
-
from transformers import pipeline
|
4 |
-
from PIL import Image
|
5 |
|
6 |
# Load the Skin Cancer Image Classification model
|
7 |
classifier = gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification")
|
@@ -58,12 +56,12 @@ def generate_explanation(label, confidence):
|
|
58 |
|
59 |
# Gradio Multi-Application System (MAS)
|
60 |
with gr.Blocks() as mas:
|
61 |
-
gr.Markdown("
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
)
|
66 |
-
|
67 |
with gr.Tab("๐ Skin Cancer Classification"):
|
68 |
with gr.Row():
|
69 |
image = gr.Image(type="pil", label="Upload Skin Image")
|
@@ -93,7 +91,7 @@ with gr.Blocks() as mas:
|
|
93 |
- **Train Accuracy:** 96.14%
|
94 |
- **Loss Function:** Cross-Entropy
|
95 |
""")
|
96 |
-
|
97 |
with gr.Tab("โน๏ธ About This Project"):
|
98 |
gr.Markdown("""
|
99 |
### About
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
|
|
|
|
3 |
|
4 |
# Load the Skin Cancer Image Classification model
|
5 |
classifier = gr.load("models/Anwarkh1/Skin_Cancer-Image_Classification")
|
|
|
56 |
|
57 |
# Gradio Multi-Application System (MAS)
|
58 |
with gr.Blocks() as mas:
|
59 |
+
gr.Markdown("""
|
60 |
+
# ๐ AI-Powered Skin Cancer Detection and Research Assistant ๐ฉบ
|
61 |
+
This multi-functional platform provides skin cancer classification, patient-friendly explanations,
|
62 |
+
and access to the latest research papers to empower healthcare and save lives.
|
63 |
+
""")
|
64 |
+
|
65 |
with gr.Tab("๐ Skin Cancer Classification"):
|
66 |
with gr.Row():
|
67 |
image = gr.Image(type="pil", label="Upload Skin Image")
|
|
|
91 |
- **Train Accuracy:** 96.14%
|
92 |
- **Loss Function:** Cross-Entropy
|
93 |
""")
|
94 |
+
|
95 |
with gr.Tab("โน๏ธ About This Project"):
|
96 |
gr.Markdown("""
|
97 |
### About
|