Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,8 @@ def main():
|
|
34 |
st.markdown("2. What is the average income?")
|
35 |
st.markdown("3. What is the average age of people who live in London?")
|
36 |
st.markdown("Go to [this page](https://openai.com/pricing) to get an OpenAI API key.")
|
|
|
|
|
37 |
# text input to ask for openai api key
|
38 |
# then hide the input
|
39 |
openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
|
@@ -43,8 +45,7 @@ def main():
|
|
43 |
|
44 |
# load the api key from the .env file
|
45 |
#load_dotenv()
|
46 |
-
|
47 |
-
|
48 |
# inform the user that the api key is loaded
|
49 |
if os.getenv("OPENAI_API_KEY") is None or os.getenv("OPENAI_API_KEY") == "":
|
50 |
print("OPENAI_API_KEY is not set")
|
|
|
34 |
st.markdown("2. What is the average income?")
|
35 |
st.markdown("3. What is the average age of people who live in London?")
|
36 |
st.markdown("Go to [this page](https://openai.com/pricing) to get an OpenAI API key.")
|
37 |
+
st.markdown("The API key takes the following form: sk****pq. NB: This is not a viable key.")
|
38 |
+
|
39 |
# text input to ask for openai api key
|
40 |
# then hide the input
|
41 |
openai_api_key = st.text_input("Enter your OpenAI API key", type="password")
|
|
|
45 |
|
46 |
# load the api key from the .env file
|
47 |
#load_dotenv()
|
48 |
+
|
|
|
49 |
# inform the user that the api key is loaded
|
50 |
if os.getenv("OPENAI_API_KEY") is None or os.getenv("OPENAI_API_KEY") == "":
|
51 |
print("OPENAI_API_KEY is not set")
|