hesamossanloo commited on
Commit
8b5ec27
1 Parent(s): aad8557

Don't commit your api key in the public repo

Browse files

If someone gets a hold of your API KEY they can do a lot of damage to your account and you are gonna end up paying for it. Please use ENV VAR instead. Let me know if you need help with that.

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