Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
3 |
from PIL import Image
|
4 |
import requests
|
5 |
|
6 |
-
# Load pre-trained model
|
7 |
classifier = pipeline("image-classification", model="Anwarkh1/Skin_Cancer-Image_Classification")
|
8 |
|
9 |
def classify_image(image):
|
@@ -20,7 +20,7 @@ def fetch_research():
|
|
20 |
papers = response.json().get("data", [])
|
21 |
return "\n".join([f"{paper['title']}: {paper['url']}" for paper in papers])
|
22 |
|
23 |
-
# Interface
|
24 |
with gr.Blocks() as demo:
|
25 |
gr.Markdown("# AI-Powered Universal Cancer Detection and Research Assistant 🌍🩺")
|
26 |
|
|
|
3 |
from PIL import Image
|
4 |
import requests
|
5 |
|
6 |
+
# Load pre-trained model for cancer image classification
|
7 |
classifier = pipeline("image-classification", model="Anwarkh1/Skin_Cancer-Image_Classification")
|
8 |
|
9 |
def classify_image(image):
|
|
|
20 |
papers = response.json().get("data", [])
|
21 |
return "\n".join([f"{paper['title']}: {paper['url']}" for paper in papers])
|
22 |
|
23 |
+
# Gradio Interface
|
24 |
with gr.Blocks() as demo:
|
25 |
gr.Markdown("# AI-Powered Universal Cancer Detection and Research Assistant 🌍🩺")
|
26 |
|