Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
bugfix - string input
Browse files- pages/4_author_search.py +2 -1
pages/4_author_search.py
CHANGED
@@ -98,6 +98,7 @@ def make_author_plot(inputstr, print_summary = False):
|
|
98 |
for i in range(len(all_authors)):
|
99 |
for j in range(len(all_authors[i])):
|
100 |
for k in range(len(authr_list)):
|
|
|
101 |
if authr.lower() in all_authors[i][j]['name'].lower():
|
102 |
author_flag[i] = 1
|
103 |
ctr = ctr+1
|
@@ -132,6 +133,6 @@ st.markdown('Trace the location and trajectory of a researcher in the astro-ph.G
|
|
132 |
st.markdown('The current text matching is exact (not case sensitive), so look at the printed summaries below to refine your input string. If you have multiple aliases by which you publish, separate the inputs with a comma followed by a space like in the example below.')
|
133 |
|
134 |
query = st.text_input('Author name:',
|
135 |
-
value="
|
136 |
|
137 |
make_author_plot(query, print_summary=True)
|
|
|
98 |
for i in range(len(all_authors)):
|
99 |
for j in range(len(all_authors[i])):
|
100 |
for k in range(len(authr_list)):
|
101 |
+
authr = authr_list[k]
|
102 |
if authr.lower() in all_authors[i][j]['name'].lower():
|
103 |
author_flag[i] = 1
|
104 |
ctr = ctr+1
|
|
|
133 |
st.markdown('The current text matching is exact (not case sensitive), so look at the printed summaries below to refine your input string. If you have multiple aliases by which you publish, separate the inputs with a comma followed by a space like in the example below.')
|
134 |
|
135 |
query = st.text_input('Author name:',
|
136 |
+
value="Kartheik Iyer, Kartheik G. Iyer, K. G. Iyer")
|
137 |
|
138 |
make_author_plot(query, print_summary=True)
|