Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,10 +10,12 @@ from utils.util import *
|
|
| 10 |
|
| 11 |
st.set_page_config(page_title="RegBotBeta", page_icon="📜🤖")
|
| 12 |
|
| 13 |
-
st.title("Welcome to RegBotBeta2.
|
| 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)
|
|
|
|
| 10 |
|
| 11 |
st.set_page_config(page_title="RegBotBeta", page_icon="📜🤖")
|
| 12 |
|
| 13 |
+
st.title("Welcome to RegBotBeta2.1")
|
| 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 |
+
api_key = os.environ['OPENAI_API_KEY']
|
| 19 |
|
| 20 |
if api_key:
|
| 21 |
resp = validate(api_key)
|