Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,17 +8,14 @@ def classify(text):
|
|
8 |
label = model(text)[0]["label"]
|
9 |
return label
|
10 |
|
11 |
-
|
12 |
-
title = "
|
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()
|