Spaces:
Sleeping
Sleeping
samschimek
commited on
Commit
•
6db8191
1
Parent(s):
46332aa
Update app.py
Browse files
app.py
CHANGED
@@ -12,17 +12,15 @@ def predict(img):
|
|
12 |
|
13 |
title = "Apple Ripeness Classifier"
|
14 |
description = "Is your apple ripe or rotten? Use this AQCC (apple quality control classifier) trained on web images with fastai."
|
15 |
-
article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
16 |
examples = ['apple-fruit-ripe.jpg']
|
17 |
-
enable_queue=True
|
18 |
|
19 |
gr.Interface(
|
20 |
fn=predict,
|
21 |
-
inputs=gr.
|
22 |
-
outputs=gr.
|
23 |
title=title,
|
24 |
description=description,
|
25 |
article=article,
|
26 |
-
examples=examples
|
27 |
-
enable_queue=enable_queue
|
28 |
).launch()
|
|
|
12 |
|
13 |
title = "Apple Ripeness Classifier"
|
14 |
description = "Is your apple ripe or rotten? Use this AQCC (apple quality control classifier) trained on web images with fastai."
|
15 |
+
article = "<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
|
16 |
examples = ['apple-fruit-ripe.jpg']
|
|
|
17 |
|
18 |
gr.Interface(
|
19 |
fn=predict,
|
20 |
+
inputs=gr.Image(type="pil"),
|
21 |
+
outputs=gr.Label(num_top_classes=3),
|
22 |
title=title,
|
23 |
description=description,
|
24 |
article=article,
|
25 |
+
examples=examples
|
|
|
26 |
).launch()
|