savasy commited on
Commit
f85e7ec
·
1 Parent(s): f1cde15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ import pandas as pd
18
  import matplotlib.pyplot as plt
19
  def grfunc(comments):
20
  df=pd.DataFrame()
21
- c2=[s for s in comments.split("\n") if len(s.split())>2]
22
  df["scores"]= sa2(c2)
23
  df.plot(kind='hist')
24
  return plt.gcf()
 
18
  import matplotlib.pyplot as plt
19
  def grfunc(comments):
20
  df=pd.DataFrame()
21
+ c2=[s.strip() for s in comments.split("\n") if len(s.split())>2]
22
  df["scores"]= sa2(c2)
23
  df.plot(kind='hist')
24
  return plt.gcf()