Spaces:
Runtime error
Runtime error
Commit
·
3098c8b
1
Parent(s):
b1510fe
Update reader.py
Browse files
reader.py
CHANGED
|
@@ -10,7 +10,7 @@ def get_article():
|
|
| 10 |
filename = "info.txt"
|
| 11 |
placeholder = "please create an info.txt to customize this text"
|
| 12 |
|
| 13 |
-
title = bkgd = sgd1 = sgd2 = td = limitation = con1 = con2 = con3 =
|
| 14 |
# check if info.txt is present
|
| 15 |
if os.path.isfile(filename):
|
| 16 |
# open info.txt in read mode
|
|
@@ -27,7 +27,11 @@ def get_article():
|
|
| 27 |
con1 = info.readline()
|
| 28 |
con2 = info.readline()
|
| 29 |
con3 = info.readline()
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
# close file
|
| 33 |
info.close()
|
|
@@ -60,9 +64,13 @@ def get_article():
|
|
| 60 |
line('li', con2)
|
| 61 |
line('li', con3)
|
| 62 |
with tag('div', klass='my-div'):
|
| 63 |
-
line('h2', '
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
css = '''
|
| 68 |
.my-div {
|
|
|
|
| 10 |
filename = "info.txt"
|
| 11 |
placeholder = "please create an info.txt to customize this text"
|
| 12 |
|
| 13 |
+
title = bkgd = sgd1 = sgd2 = td = limitation = con1 = con2 = con3 = mem1 = mem2 = mem3 = mem4 = mem5 = placeholder
|
| 14 |
# check if info.txt is present
|
| 15 |
if os.path.isfile(filename):
|
| 16 |
# open info.txt in read mode
|
|
|
|
| 27 |
con1 = info.readline()
|
| 28 |
con2 = info.readline()
|
| 29 |
con3 = info.readline()
|
| 30 |
+
mem1 = info.readline()
|
| 31 |
+
mem2 = info.readline()
|
| 32 |
+
mem3 = info.readline()
|
| 33 |
+
mem4 = info.readline()
|
| 34 |
+
mem5 = info.readline()
|
| 35 |
|
| 36 |
# close file
|
| 37 |
info.close()
|
|
|
|
| 64 |
line('li', con2)
|
| 65 |
line('li', con3)
|
| 66 |
with tag('div', klass='my-div'):
|
| 67 |
+
line('h2', 'Conclusion and Future Work:')
|
| 68 |
+
with tag('ul'):
|
| 69 |
+
line('li', mem1)
|
| 70 |
+
line('li', mem2)
|
| 71 |
+
line('li', mem3)
|
| 72 |
+
line('li', mem4)
|
| 73 |
+
line('li', mem5)
|
| 74 |
|
| 75 |
css = '''
|
| 76 |
.my-div {
|