Spaces:
Sleeping
Sleeping
Commit
•
ed79639
1
Parent(s):
38525e5
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 =
|
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 = OPENAPI_KEY
|
6 |
|
7 |
def chat_with_gpt3(prompt):
|
8 |
response = openai.ChatCompletion.create(
|