tminh commited on
Commit
f50b4fe
·
verified ·
1 Parent(s): 0fb47c1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ logger = logging.getLogger(__name__)
28
  # Initialize the OpenAI API with your API key
29
  import openai
30
  from openai import OpenAI
31
- from os import api_key
32
  client = OpenAI(api_key=api_key)
33
 
34
  prompt = """I am a doctor, I would like you to check my prescription:
 
28
  # Initialize the OpenAI API with your API key
29
  import openai
30
  from openai import OpenAI
31
+ api_key = st.secrets["OPENAI_API_KEY"]
32
  client = OpenAI(api_key=api_key)
33
 
34
  prompt = """I am a doctor, I would like you to check my prescription: