Aakash Goel commited on
Commit
c74c287
·
1 Parent(s): c02b23b

page views 1

Browse files
Files changed (1) hide show
  1. 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
- return []
14
 
15
- pageviews=Pageviews()
16
- pageviews.append('dummy')
 
 
 
 
17
 
18
- try:
19
- st.markdown('Page viewed = {} times.'.format(len(pageviews)))
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('![Visitor count](https://shields-io-visitor-counter.herokuapp.com/badge?page=https://share.streamlit.io/https://huggingface.co/spaces/aakashgoel12/nlp1&label=VisitorsCount&labelColor=000000&logo=GitHub&logoColor=FFFFFF&color=1D70B8&style=for-the-badge)')
 
 
24
 
25
  def load_file():
26
  """Load text from file"""