Don't commit your api key in the public repo

#1
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -3,7 +3,7 @@ import re
3
  import gradio as gr
4
 
5
  # Define OpenAI API key
6
- openai.api_key = "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"
7
 
8
  model_engine = "text-davinci-003"
9
 
 
3
  import gradio as gr
4
 
5
  # Define OpenAI API key
6
+ openai.api_key = "MAKE_THIS_AN_ENV_VAR"
7
 
8
  model_engine = "text-davinci-003"
9