Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
9e86e11
1 Parent(s): d5ef393

adding runtime info

Browse files
appStore/coherence.py CHANGED
@@ -77,6 +77,17 @@ def app():
77
  investment needs). The assignment of the paragraph to a corresponding\
78
  indicator is based on vector similarities in which top 3 results
79
  if found are shown to the user. """)
 
 
 
 
 
 
 
 
 
 
 
80
 
81
  with st.sidebar:
82
 
 
77
  investment needs). The assignment of the paragraph to a corresponding\
78
  indicator is based on vector similarities in which top 3 results
79
  if found are shown to the user. """)
80
+ st.write("")
81
+ col1,col2= st.columns(2)
82
+ with col1:
83
+ st.caption("OCR File processing")
84
+ # st.markdown('<div style="text-align: center;">50 sec</div>', unsafe_allow_html=True)
85
+ st.write("50 sec")
86
+
87
+ with col2:
88
+ st.caption("NDC comparison on 200 paragraphs(~ 35 pages)")
89
+ # st.markdown('<div style="text-align: center;">12 sec</div>', unsafe_allow_html=True)
90
+ st.write("140 sec")
91
 
92
  with st.sidebar:
93
 
appStore/keyword_search.py CHANGED
@@ -70,8 +70,25 @@ def app():
70
  st.write("")
71
  st.write(""" The Exact Matches gives back top {} findings, and Semantic
72
  search provides with top {} answers.""".format(lexical_top_k, retriever_top_k))
73
-
74
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
  with st.sidebar:
76
  with open('docStore/sample/keywordexample.json','r') as json_file:
77
  keywordexample = json.load(json_file)
 
70
  st.write("")
71
  st.write(""" The Exact Matches gives back top {} findings, and Semantic
72
  search provides with top {} answers.""".format(lexical_top_k, retriever_top_k))
73
+ st.write("")
74
+ st.write("")
75
+ st.markdown("Some runtime metrics tested with cpu: Intel(R) Xeon(R) CPU @ 2.20GHz, memory: 13GB")
76
+ col1,col2,col3= st.columns([2,4,4])
77
+ with col1:
78
+ st.caption("OCR File processing")
79
+ # st.markdown('<div style="text-align: center;">50 sec</div>', unsafe_allow_html=True)
80
+ st.write("50 sec")
81
+
82
+ with col2:
83
+ st.caption("Lexical Search on 200 paragraphs(~ 35 pages)")
84
+ # st.markdown('<div style="text-align: center;">12 sec</div>', unsafe_allow_html=True)
85
+ st.write("15 sec")
86
+
87
+ with col3:
88
+ st.caption("Semantic search on 200 paragraphs(~ 35 pages)")
89
+ # st.markdown('<div style="text-align: center;">120 sec</div>', unsafe_allow_html=True)
90
+ st.write("120 sec(excluding emebedding creation)")
91
+
92
  with st.sidebar:
93
  with open('docStore/sample/keywordexample.json','r') as json_file:
94
  keywordexample = json.load(json_file)
appStore/sdg_analysis.py CHANGED
@@ -87,20 +87,20 @@ def app():
87
  col1,col2,col3,col4 = st.columns([2,2,3,3])
88
  with col1:
89
  st.caption("Loading Time Classifier")
90
- st.markdown('<div style="text-align: center;">12 sec</div>', unsafe_allow_html=True)
91
- # st.write("12 sec")
92
  with col2:
93
  st.caption("OCR File processing")
94
- st.markdown('<div style="text-align: center;">50 sec</div>', unsafe_allow_html=True)
95
- # st.write("50 sec")
96
  with col3:
97
- st.caption("SDG Classification of 200 paragraphs")
98
- st.markdown('<div style="text-align: center;">120 sec</div>', unsafe_allow_html=True)
99
- # st.write("120 sec")
100
  with col4:
101
- st.caption("Keyword extraction for 200 paragraphs")
102
- st.markdown('<div style="text-align: center;">3 sec</div>', unsafe_allow_html=True)
103
- # st.write("3 sec")
104
 
105
 
106
 
 
87
  col1,col2,col3,col4 = st.columns([2,2,3,3])
88
  with col1:
89
  st.caption("Loading Time Classifier")
90
+ # st.markdown('<div style="text-align: center;">12 sec</div>', unsafe_allow_html=True)
91
+ st.write("12 sec")
92
  with col2:
93
  st.caption("OCR File processing")
94
+ # st.markdown('<div style="text-align: center;">50 sec</div>', unsafe_allow_html=True)
95
+ st.write("50 sec")
96
  with col3:
97
+ st.caption("SDG Classification of 200 paragraphs(~ 35 pages)")
98
+ # st.markdown('<div style="text-align: center;">120 sec</div>', unsafe_allow_html=True)
99
+ st.write("120 sec")
100
  with col4:
101
+ st.caption("Keyword extraction for 200 paragraphs(~ 35 pages)")
102
+ # st.markdown('<div style="text-align: center;">3 sec</div>', unsafe_allow_html=True)
103
+ st.write("3 sec")
104
 
105
 
106