kkastr commited on
Commit
77d9839
1 Parent(s): 7434416

changed matplotlib to use agg backend

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3,6 +3,7 @@ import re
3
  import sys
4
  import nltk
5
  import praw
 
6
  import gradio as gr
7
  import pandas as pd
8
  import praw.exceptions
@@ -10,6 +11,8 @@ import matplotlib.pyplot as plt
10
  from wordcloud import WordCloud
11
  from transformers import pipeline
12
 
 
 
13
 
14
  def index_chunk(a):
15
  n = round(0.3 * len(a))
 
3
  import sys
4
  import nltk
5
  import praw
6
+ import matplotlib
7
  import gradio as gr
8
  import pandas as pd
9
  import praw.exceptions
 
11
  from wordcloud import WordCloud
12
  from transformers import pipeline
13
 
14
+ matplotlib.use('Agg')
15
+
16
 
17
  def index_chunk(a):
18
  n = round(0.3 * len(a))