Spaces:
Runtime error
Runtime error
Aakash Goel
commited on
Commit
·
c74c287
1
Parent(s):
c02b23b
page views 1
Browse files- code/qa.py +11 -9
code/qa.py
CHANGED
@@ -8,17 +8,19 @@ def load_model():
|
|
8 |
question_answerer = pipeline('question-answering')
|
9 |
return question_answerer
|
10 |
|
11 |
-
@st.cache(allow_output_mutation=True)
|
12 |
-
def Pageviews():
|
13 |
-
|
14 |
|
15 |
-
pageviews=Pageviews()
|
16 |
-
pageviews.append('dummy')
|
|
|
|
|
|
|
|
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
except ValueError:
|
21 |
-
st.markdown('Page viewed = {} times.'.format(1))
|
22 |
|
23 |
def load_file():
|
24 |
"""Load text from file"""
|
|
|
8 |
question_answerer = pipeline('question-answering')
|
9 |
return question_answerer
|
10 |
|
11 |
+
# @st.cache(allow_output_mutation=True)
|
12 |
+
# def Pageviews():
|
13 |
+
# return []
|
14 |
|
15 |
+
# pageviews=Pageviews()
|
16 |
+
# pageviews.append('dummy')
|
17 |
+
# try:
|
18 |
+
# st.markdown('Page viewed = {} times.'.format(len(pageviews)))
|
19 |
+
# except ValueError:
|
20 |
+
# st.markdown('Page viewed = {} times.'.format(1))
|
21 |
|
22 |
+
|
23 |
+
st.sidebar.markdown('')
|
|
|
|
|
24 |
|
25 |
def load_file():
|
26 |
"""Load text from file"""
|