Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,15 +13,22 @@ import numpy as np
|
|
13 |
from matplotlib import pyplot as plt
|
14 |
import pickle
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)
|