Spaces:
Runtime error
Runtime error
Commit
·
1dad98a
1
Parent(s):
0813b7f
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,10 @@ def analyze(text):
|
|
11 |
|
12 |
return pd.DataFrame(formatted_results)
|
13 |
|
|
|
14 |
examples = ["Walking alone in the dark forest, he couldn't shake the feeling of fear creeping over him." ,
|
15 |
"Winning the championship brought tears of joy to the entire team."]
|
|
|
16 |
# Create a Gradio interface
|
17 |
iface = gr.Interface(fn=analyze,
|
18 |
inputs="text",
|
@@ -22,6 +24,5 @@ iface = gr.Interface(fn=analyze,
|
|
22 |
title="BERT Emotion Analysis App" ,
|
23 |
description="Enter a piece of text, and this app will analyze its emotional content using a BERT-Emotions-Classifier model.",
|
24 |
)
|
25 |
-
|
26 |
# Launch the app
|
27 |
iface.launch(debug=True)
|
|
|
11 |
|
12 |
return pd.DataFrame(formatted_results)
|
13 |
|
14 |
+
|
15 |
examples = ["Walking alone in the dark forest, he couldn't shake the feeling of fear creeping over him." ,
|
16 |
"Winning the championship brought tears of joy to the entire team."]
|
17 |
+
|
18 |
# Create a Gradio interface
|
19 |
iface = gr.Interface(fn=analyze,
|
20 |
inputs="text",
|
|
|
24 |
title="BERT Emotion Analysis App" ,
|
25 |
description="Enter a piece of text, and this app will analyze its emotional content using a BERT-Emotions-Classifier model.",
|
26 |
)
|
|
|
27 |
# Launch the app
|
28 |
iface.launch(debug=True)
|