Davide Fiocco commited on
Commit
0276ca2
1 Parent(s): d293ad6

Change secret name

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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["api-key"]
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")