NeuralJunkie commited on
Commit
e6945f2
·
1 Parent(s): 634253b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,8 +1,10 @@
 
1
  import openai
2
  import gradio as gr
3
 
4
  # Set up OpenAI API credentials
5
- openai.api_key = "API_KEY"
 
6
 
7
  # Set up the GPT-3.5-Turbo model
8
  model_engine = "gpt-3.5-turbo-0301"
 
1
+ import os
2
  import openai
3
  import gradio as gr
4
 
5
  # Set up OpenAI API credentials
6
+ api_key = os.environ.get("API_KEY", "API_KEY")
7
+ openai.api_key = api_key
8
 
9
  # Set up the GPT-3.5-Turbo model
10
  model_engine = "gpt-3.5-turbo-0301"