Spaces:
Build error
Build error
Commit
•
39e5c71
1
Parent(s):
728103f
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,9 @@ def classify_image(img):
|
|
14 |
image = gr.inputs.Image(shape=(192,192))
|
15 |
label = gr.outputs.Label()
|
16 |
examples = ['mri.jpg','ct.jpg','ultrasound.jpg', 'xray.jpg']
|
|
|
|
|
|
|
17 |
|
18 |
-
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
19 |
intf.launch(inline=False)
|
|
|
14 |
image = gr.inputs.Image(shape=(192,192))
|
15 |
label = gr.outputs.Label()
|
16 |
examples = ['mri.jpg','ct.jpg','ultrasound.jpg', 'xray.jpg']
|
17 |
+
title = 'Medical Image Classifier'
|
18 |
+
description = 'You need to know whether you are dealing with an MRI , X-Ray, CT, or Ultrasound image, and you need an answer fast? Then you have come to the right place. Upload the potentially (probably not) life-saving pic to classify it.'
|
19 |
+
article = "Author: <a href=\"https://huggingface.co/archietram\">Archie Tram</a>. "
|
20 |
|
21 |
+
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples, title=title, description=description, article=article)
|
22 |
intf.launch(inline=False)
|