Spaces:
Runtime error
Runtime error
Commit
·
960336c
1
Parent(s):
9cd47c7
Update app.py
Browse files
app.py
CHANGED
@@ -77,8 +77,8 @@ def run(text):
|
|
77 |
df_ = sentiment_df(text)
|
78 |
ner_all = ner(text)
|
79 |
fig = plt.figure()
|
80 |
-
|
81 |
-
return summ_, sent_, ner_, fig, ner_all,
|
82 |
|
83 |
if __name__ == "__main__":
|
84 |
with gr.Blocks() as demo:
|
|
|
77 |
df_ = sentiment_df(text)
|
78 |
ner_all = ner(text)
|
79 |
fig = plt.figure()
|
80 |
+
df_.groupby(["Label"])["Text"].count().plot.pie(autopct="%.1f%%", figsize=(6,6))
|
81 |
+
return summ_, sent_, ner_, fig, ner_all, df_
|
82 |
|
83 |
if __name__ == "__main__":
|
84 |
with gr.Blocks() as demo:
|