Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ if openAiKey:
|
|
19 |
)
|
20 |
st.success("OpenAI key is valid!")
|
21 |
except Exception as e:
|
22 |
-
st.
|
23 |
st.stop()
|
24 |
|
25 |
def get_chat_completion(prompt, model="gpt-3.5-turbo"):
|
|
|
19 |
)
|
20 |
st.success("OpenAI key is valid!")
|
21 |
except Exception as e:
|
22 |
+
st.write(f"Invalid OpenAI key: {e}")
|
23 |
st.stop()
|
24 |
|
25 |
def get_chat_completion(prompt, model="gpt-3.5-turbo"):
|