sean1 commited on
Commit
ce46abb
·
1 Parent(s): 35a1c5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,10 +43,10 @@ class ChatWrapper:
43
  history = history or []
44
  # If chain is None, that is because no API key was provided.
45
  if agent is None:
46
- history.append((inp, "Please paste your OpenAI key to use"))
47
  return history, history
48
  # Set OpenAI key
49
- agent = set_anthropic_api_key(api_key)
50
  # Run chain and append input.
51
  output = agent.run(input=inp)
52
  history.append((inp, output))
 
43
  history = history or []
44
  # If chain is None, that is because no API key was provided.
45
  if agent is None:
46
+ history.append((inp, "Please paste your anthropic key to use"))
47
  return history, history
48
  # Set OpenAI key
49
+ agent = set_anthropic_api_key(history)
50
  # Run chain and append input.
51
  output = agent.run(input=inp)
52
  history.append((inp, output))