phyloforfun commited on
Commit
492b0f2
1 Parent(s): b3c3533

file upload gallery

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -621,7 +621,7 @@ def show_available_APIs():
621
  'Google OCR API': emoji_good if st.session_state['has_key_google_OCR'] else emoji_bad,
622
  'OpenAI API': emoji_good if st.session_state['has_key_openai'] else emoji_bad,
623
  'Palm API': emoji_good if st.session_state['has_key_palm2'] else emoji_bad,
624
- 'Azure API': emoji_good if st.session_state['has_key_azure'] else emoji_bad,
625
  }
626
  for api_name, status in table.items():
627
  st.markdown(f"* {status} {api_name}")
@@ -1357,8 +1357,10 @@ def content_tab_settings():
1357
  # Now filter the LLM_VERSIONS based on the available API keys
1358
  available_versions = []
1359
  for api_name, versions in st.session_state['LLM_VERSIONS'].items():
 
1360
  if st.session_state.get(f'has_key_{api_name.lower().replace(" ", "_")}', False):
1361
  available_versions.extend(versions)
 
1362
 
1363
  # Show available LLM versions in a select box
1364
  st.subheader('LLM Version')
 
621
  'Google OCR API': emoji_good if st.session_state['has_key_google_OCR'] else emoji_bad,
622
  'OpenAI API': emoji_good if st.session_state['has_key_openai'] else emoji_bad,
623
  'Palm API': emoji_good if st.session_state['has_key_palm2'] else emoji_bad,
624
+ 'OpenAI API (Azure)': emoji_good if st.session_state['has_key_azure'] else emoji_bad,
625
  }
626
  for api_name, status in table.items():
627
  st.markdown(f"* {status} {api_name}")
 
1357
  # Now filter the LLM_VERSIONS based on the available API keys
1358
  available_versions = []
1359
  for api_name, versions in st.session_state['LLM_VERSIONS'].items():
1360
+ print(f'has_key_{api_name.lower().replace(" ", "_")}')
1361
  if st.session_state.get(f'has_key_{api_name.lower().replace(" ", "_")}', False):
1362
  available_versions.extend(versions)
1363
+ print(available_versions)
1364
 
1365
  # Show available LLM versions in a select box
1366
  st.subheader('LLM Version')