Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,6 +14,7 @@ st.title("Welcome to RegBotBeta2.0")
|
|
| 14 |
st.header("Powered by `LlamaIndex🦙`, `Langchain🦜🔗 ` and `OpenAI API`")
|
| 15 |
|
| 16 |
#api_key = st.text_input("Enter your OpenAI API key here:", type="password")
|
|
|
|
| 17 |
|
| 18 |
if api_key:
|
| 19 |
resp = validate(api_key)
|
|
|
|
| 14 |
st.header("Powered by `LlamaIndex🦙`, `Langchain🦜🔗 ` and `OpenAI API`")
|
| 15 |
|
| 16 |
#api_key = st.text_input("Enter your OpenAI API key here:", type="password")
|
| 17 |
+
api_key = os.environ['OPENAI_API_KEY']
|
| 18 |
|
| 19 |
if api_key:
|
| 20 |
resp = validate(api_key)
|