Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -151,7 +151,9 @@ def fDistancePlot(text2Party,plotN=30):
|
|
151 |
'''
|
152 |
word_tokens_party = word_tokenize(text2Party) #Tokenizing
|
153 |
fdistance = FreqDist(word_tokens_party)
|
154 |
-
plt.
|
|
|
|
|
155 |
fdistance.plot(plotN)
|
156 |
plt.tight_layout()
|
157 |
buf = BytesIO()
|
|
|
151 |
'''
|
152 |
word_tokens_party = word_tokenize(text2Party) #Tokenizing
|
153 |
fdistance = FreqDist(word_tokens_party)
|
154 |
+
plt.title('Frequency Distribution')
|
155 |
+
plt.axis('off')
|
156 |
+
plt.figure(figsize=(4,3))
|
157 |
fdistance.plot(plotN)
|
158 |
plt.tight_layout()
|
159 |
buf = BytesIO()
|