Spaces:
Sleeping
Sleeping
akhilhsingh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import openai
|
3 |
|
4 |
# Replace the placeholder text with your actual OpenAI API key
|
5 |
-
openai.api_key = OPENAPI_KEY
|
6 |
|
7 |
def chat_with_gpt3(prompt):
|
8 |
response = openai.ChatCompletion.create(
|
|
|
2 |
import openai
|
3 |
|
4 |
# Replace the placeholder text with your actual OpenAI API key
|
5 |
+
openai.api_key = os.environ['OPENAPI_KEY']
|
6 |
|
7 |
def chat_with_gpt3(prompt):
|
8 |
response = openai.ChatCompletion.create(
|