amruthakp7 commited on
Commit
a90577f
·
1 Parent(s): bc2a9ae
Files changed (8) hide show
  1. anger.jpg +0 -0
  2. angry.jpeg +0 -0
  3. app.py +5 -5
  4. disg.jpg +0 -0
  5. fear.jpg +0 -0
  6. ha.jpg +0 -0
  7. happylee.jpg +0 -0
  8. 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 = "A EMOTION classifier trained with fastai. Created as a demo for Gradio and HuggingFace Spaces."
32
- article="<p style='text-align: center'><a href='https://tmabraham.github.io/blog/gradio_hf_spaces_tutorial' target='_blank'>Blog post</a></p>"
33
- examples = ['happylee.jpg','damu.jpeg','angry.jpeg','kili.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()
 
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