Skip to content

Commit

Permalink
Added some changes for the cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Calapini committed Dec 3, 2023
1 parent 482e30a commit 488436b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions frontend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ def init():

def set_apikey():
st.sidebar.header('Configure')
api_key = st.sidebar.text_input("Enter your OpenAI API key", type="password")
return api_key
api_entry = st.sidebar.text_input("Enter your OpenAI API key", type="password")
if api_entry:
os.environ["OPENAI_API_KEY"] = api_entry

return True


def config(client):
my_assistants = client.beta.assistants.list(
Expand Down

0 comments on commit 488436b

Please sign in to comment.