aymen12 commited on
Commit
ade7e0a
·
1 Parent(s): 65ff4a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -8,17 +8,14 @@ def classify(text):
8
  label = model(text)[0]["label"]
9
  return label
10
 
11
- description = "This AI model is trained to classify texts expressing human emotion into six categories: sadness, joy, love, anger, fear, and surprise."
12
- title = "Classify Texts Expressing Emotion"
13
- examples = [["This is such a beautiful place"]]
14
 
15
  iface = gr.Interface(
16
  fn=classify,
17
  inputs=gr.Textbox(),
18
  outputs=gr.Label(),
19
  title=title,
20
- description=description,
21
- examples=examples,
22
  )
23
 
24
  iface.launch()
 
8
  label = model(text)[0]["label"]
9
  return label
10
 
11
+
12
+ title = "Texts Expressing Emotion"
 
13
 
14
  iface = gr.Interface(
15
  fn=classify,
16
  inputs=gr.Textbox(),
17
  outputs=gr.Label(),
18
  title=title,
 
 
19
  )
20
 
21
  iface.launch()