Spaces:
Runtime error
Runtime error
Commit
·
a922de5
1
Parent(s):
b4cc3e4
Revised the keys
Browse files- app.py +1 -1
- requirements.txt +1 -2
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import time
|
|
| 5 |
|
| 6 |
|
| 7 |
def chatbot_response(prompt_topic):
|
| 8 |
-
openai.api_key = os.
|
| 9 |
|
| 10 |
response = openai.ChatCompletion.create(
|
| 11 |
model="gpt-4",
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
def chatbot_response(prompt_topic):
|
| 8 |
+
openai.api_key = os.environ.get('OPENAI_API_KEY')
|
| 9 |
|
| 10 |
response = openai.ChatCompletion.create(
|
| 11 |
model="gpt-4",
|
requirements.txt
CHANGED
|
@@ -1,2 +1 @@
|
|
| 1 |
-
openai
|
| 2 |
-
os
|
|
|
|
| 1 |
+
openai
|
|
|