Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,5 +10,15 @@ def greet(img):
|
|
10 |
res += pred[2]['label'] + ':' + str(pred[2]['score'])
|
11 |
return res
|
12 |
|
13 |
-
iface = gr.Interface(fn=greet,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
iface.launch()
|
|
|
10 |
res += pred[2]['label'] + ':' + str(pred[2]['score'])
|
11 |
return res
|
12 |
|
13 |
+
iface = gr.Interface(fn=greet,
|
14 |
+
title='Which Decade Are You From?',
|
15 |
+
description="""
|
16 |
+
by [Tony Assi](https://www.tonyassi.com/)
|
17 |
+
|
18 |
+
This space uses the [fashion-clothing-decade image classification model](https://huggingface.co/tonyassi/fashion-clothing-decade). Please ❤️ this Space.
|
19 |
+
|
20 |
+
I build custom AI apps for companies. <a href="mailto: tony.assi.media@gmail.com">Email me</a> for business inquiries.
|
21 |
+
"""
|
22 |
+
inputs=gr.Image(type="pil"),
|
23 |
+
outputs="text")
|
24 |
iface.launch()
|