Spaces:
Runtime error
Runtime error
Commit
·
8b5ec27
1
Parent(s):
aad8557
Don't commit your api key in the public repo
Browse filesIf 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.
app.py
CHANGED
@@ -3,7 +3,7 @@ import re
|
|
3 |
import gradio as gr
|
4 |
|
5 |
# Define OpenAI API key
|
6 |
-
openai.api_key = "
|
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 |
|