Spaces:
Paused
Paused
Davide Fiocco
commited on
Commit
•
0276ca2
1
Parent(s):
d293ad6
Change secret name
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from openai import OpenAI
|
|
3 |
|
4 |
st.title("Summarize text with OpenAI's API")
|
5 |
|
6 |
-
key = st.secrets["
|
7 |
client = OpenAI(api_key=key)
|
8 |
|
9 |
st.write("Summarize text by using OpenAI's API")
|
|
|
3 |
|
4 |
st.title("Summarize text with OpenAI's API")
|
5 |
|
6 |
+
key = st.secrets["OPENAI_API_KEY"]
|
7 |
client = OpenAI(api_key=key)
|
8 |
|
9 |
st.write("Summarize text by using OpenAI's API")
|