mgbam commited on
Commit
21436da
ยท
verified ยท
1 Parent(s): 17ec5d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
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("# ๐ŸŒ AI-Powered Skin Cancer Detection and Research Assistant ๐Ÿฉบ")
62
- gr.Markdown(
63
- "This multi-functional platform provides skin cancer classification, patient-friendly explanations, "
64
- "and access to the latest research papers to empower healthcare and save lives."
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