Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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:
|