Update app.py
Browse files
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()
|