Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
import openai
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
openai.api_key =
|
| 6 |
|
| 7 |
def openai_chat(prompt):
|
| 8 |
completions = openai.Completion.create(
|
|
|
|
| 2 |
import openai
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
+
openai.api_key = open_ai_key # Replace this with your API key: https://beta.openai.com/docs/quickstart/add-your-api-key
|
| 6 |
|
| 7 |
def openai_chat(prompt):
|
| 8 |
completions = openai.Completion.create(
|