Spaces:
Sleeping
Sleeping
Commit
·
a90577f
1
Parent(s):
bc2a9ae
updated
Browse files- anger.jpg +0 -0
- angry.jpeg +0 -0
- app.py +5 -5
- disg.jpg +0 -0
- fear.jpg +0 -0
- ha.jpg +0 -0
- happylee.jpg +0 -0
- sad.jpg +0 -0
anger.jpg
ADDED
![]() |
angry.jpeg
DELETED
Binary file (4.91 kB)
|
|
app.py
CHANGED
@@ -28,10 +28,10 @@ def predict(img):
|
|
28 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
29 |
|
30 |
title = "EMOTIONAL DAMAGE"
|
31 |
-
description = "
|
32 |
-
article="<p style='text-align: center'><a href='https://
|
33 |
-
examples = ['
|
34 |
-
interpretation='default'
|
35 |
-
enable_queue=True
|
36 |
|
37 |
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=5),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
|
|
28 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
29 |
|
30 |
title = "EMOTIONAL DAMAGE"
|
31 |
+
description = "Find your true emotions"
|
32 |
+
article="<p style='text-align: center'><a href='https://www.linkedin.com/in/ranjith-azad-506201238/' target='_blank'>Linkedin</a></p>"
|
33 |
+
examples = ['ha.jpg','damu.jpeg','kili.jpg','sad.jpg','fear.jpg','disg.jpg','anger.jpg']
|
34 |
+
interpretation='default'
|
35 |
+
enable_queue=True
|
36 |
|
37 |
gr.Interface(fn=predict,inputs=gr.inputs.Image(shape=(512, 512)),outputs=gr.outputs.Label(num_top_classes=5),title=title,description=description,article=article,examples=examples,interpretation=interpretation,enable_queue=enable_queue).launch()
|
disg.jpg
ADDED
![]() |
fear.jpg
ADDED
![]() |
ha.jpg
ADDED
![]() |
happylee.jpg
DELETED
Binary file (94.1 kB)
|
|
sad.jpg
ADDED
![]() |