Update app.py
Browse files
app.py
CHANGED
@@ -12,14 +12,13 @@ def classify(text):
|
|
12 |
|
13 |
description = "This AI model is trained to classify texts expressing human emotion into six categories: sadness, joy, love, anger, fear, and surprise."
|
14 |
title = "Classify Texts Expressing Emotion"
|
15 |
-
# theme = "black"
|
16 |
examples=[["This is such a beautiful place"]]
|
17 |
|
18 |
gr.Interface(fn=classify,
|
19 |
inputs="textbox",
|
20 |
outputs="text",
|
21 |
title=title,
|
22 |
-
|
23 |
description=description,
|
24 |
examples=examples,
|
25 |
).launch()
|
|
|
12 |
|
13 |
description = "This AI model is trained to classify texts expressing human emotion into six categories: sadness, joy, love, anger, fear, and surprise."
|
14 |
title = "Classify Texts Expressing Emotion"
|
|
|
15 |
examples=[["This is such a beautiful place"]]
|
16 |
|
17 |
gr.Interface(fn=classify,
|
18 |
inputs="textbox",
|
19 |
outputs="text",
|
20 |
title=title,
|
21 |
+
gr.Interface(fn=fn, theme="dark").launch()
|
22 |
description=description,
|
23 |
examples=examples,
|
24 |
).launch()
|