Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import openai
|
|
3 |
import gradio as gr
|
4 |
|
5 |
#openai.api_key ="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"
|
6 |
-
|
|
|
7 |
|
8 |
start_sequence = "\nAI:"
|
9 |
restart_sequence = "\nHuman: "
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
#openai.api_key ="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"
|
6 |
+
apikey = os.environ.get('myfirstsecret')
|
7 |
+
openai.api_key = apikey
|
8 |
|
9 |
start_sequence = "\nAI:"
|
10 |
restart_sequence = "\nHuman: "
|