mrungta8 commited on
Commit
0cac8e0
·
1 Parent(s): 2db34c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -13,15 +13,22 @@ import numpy as np
13
  from matplotlib import pyplot as plt
14
  import pickle
15
 
16
-
17
- # Read list to memory
18
- def read_list():
19
- # for reading also binary mode is important
20
- with open('mean_aoc_all_papers.pkl', 'rb') as fp:
21
- n_list = pickle.load(fp)
22
- return n_list
23
-
24
- mean_citation_list = read_list()
 
 
 
 
 
 
 
25
 
26
  def generate_plot_maoc(input_maoc):
27
  sns.set(font_scale = 8)
 
13
  from matplotlib import pyplot as plt
14
  import pickle
15
 
16
+ mean_citation_list = []
17
+
18
+ # Open the file and read the content in a list
19
+ with open('mean_citation_list.txt', 'r') as filehandle:
20
+ for line in filehandle:
21
+ temp = line[:-1]
22
+ mean_citation_list.append(temp)
23
+
24
+ # # Read list to memory
25
+ # def read_list():
26
+ # # for reading also binary mode is important
27
+ # with open('mean_aoc_all_papers.pkl', 'rb') as fp:
28
+ # n_list = pickle.load(fp)
29
+ # return n_list
30
+
31
+ # mean_citation_list = read_list()
32
 
33
  def generate_plot_maoc(input_maoc):
34
  sns.set(font_scale = 8)