wzkariampuzha commited on
Commit
9f1994a
1 Parent(s): 2bdce44

Update extract_abs.py

Browse files
Files changed (1) hide show
  1. extract_abs.py +6 -2
extract_abs.py CHANGED
@@ -328,9 +328,13 @@ def streamlit_extraction(search_term:Union[int,str], maxResults:int, filtering:s
328
  i+=1
329
  my_bar.progress(min(round(i*percent_at_step/100,1),1.0))
330
 
331
- sankey_data = (found, relevant, epidemiologic)
332
  st.write(len(results),'abstracts classified as epidemiological.')
333
- return results.sort_values('PROB_OF_EPI', ascending=False), sankey_data
 
 
 
 
 
334
 
335
  #Identical to search_term_extraction, except it returns a JSON object instead of a df
336
  def API_extraction(search_term:Union[int,str], maxResults:int, filtering:str, #for abstract search
 
328
  i+=1
329
  my_bar.progress(min(round(i*percent_at_step/100,1),1.0))
330
 
 
331
  st.write(len(results),'abstracts classified as epidemiological.')
332
+
333
+ sankey_data = (found, relevant, epidemiologic)
334
+
335
+ name_gardID = (search_term_list[-1],GARD_dict[search_term_list[-1]])
336
+
337
+ return results.sort_values('PROB_OF_EPI', ascending=False), sankey_data, name_gardID
338
 
339
  #Identical to search_term_extraction, except it returns a JSON object instead of a df
340
  def API_extraction(search_term:Union[int,str], maxResults:int, filtering:str, #for abstract search