Spaces:
Running
Running
Update app.py
Browse files
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
|
47 |
return history, history
|
48 |
# Set OpenAI key
|
49 |
-
agent = set_anthropic_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))
|