wiraindrak commited on
Commit
960336c
·
1 Parent(s): 9cd47c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- 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:
 
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: