doncamilom commited on
Commit
11250ba
1 Parent(s): 4d247b4

new cc version + fix paperqa

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,6 @@ st.markdown(
39
  unsafe_allow_html=True,
40
  )
41
 
42
- os.environ['OPENAI_API_KEY'] = ss.get('api_key')
43
  agent = ChemCrow(
44
  model='gpt-4',
45
  tools_model='gpt-4-0613',
@@ -60,6 +59,7 @@ tool_list.columns = ['Tool', 'Description']
60
 
61
  def on_api_key_change():
62
  api_key = ss.get('api_key') or os.getenv('OPENAI_API_KEY')
 
63
  # Check if key is valid
64
  if not oai_key_isvalid(api_key):
65
  st.write("Please input a valid OpenAI API key.")
 
39
  unsafe_allow_html=True,
40
  )
41
 
 
42
  agent = ChemCrow(
43
  model='gpt-4',
44
  tools_model='gpt-4-0613',
 
59
 
60
  def on_api_key_change():
61
  api_key = ss.get('api_key') or os.getenv('OPENAI_API_KEY')
62
+ os.environ['OPENAI_API_KEY'] = ss.get('api_key')
63
  # Check if key is valid
64
  if not oai_key_isvalid(api_key):
65
  st.write("Please input a valid OpenAI API key.")