File size: 1,210 Bytes
c0fb58e
 
09d7c40
 
3f304da
 
 
 
 
09d7c40
 
c1112a4
 
 
a5d7249
c1112a4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr

examples = ["https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/oGDkcC_A2EippXY1qGzvz.png",
           "https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/Q7KrLHxyOGGMYe9Il-AGr.png",
           "https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/eeBiP6moG6h-f2JMcWFVq.png",
           "https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/Kh3W61A0j8mjtkmeaclnP.png",
           "https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/8WTccefRQ1AJVXh1tv9Tt.png",
           "https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/wXoSxoNaOZwUpvoCFosEm.png",
           "https://cdn-uploads.huggingface.co/production/uploads/63de2ecce742e86dc9196cb0/ya4D9ZiChtk2EHdxY8Eki.png"]

description = "This demo uses a Vision Transformer model specially trained for breast cancer detection. You can see the model's predictions by uploading an X-ray image below."

gr.load("models/emre570/google-vit-large-finetuned", 
        title="Fine Tuned Breast Cancer ViT Demo",
        description = description,
        examples = examples).launch()