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