Spaces:
Runtime error
Runtime error
Nitish Raghav
commited on
Commit
•
8850463
1
Parent(s):
e4c3071
Update gptcall.py
Browse files- gptcall.py +2 -2
gptcall.py
CHANGED
@@ -12,10 +12,10 @@ API_KEY = config.get('API', 'OPEN_AI_KEY')
|
|
12 |
API_URL = config.get('API', 'OPEN_AI_URL')
|
13 |
# print(API_URL,API_KEY)
|
14 |
# Set the OpenAI API key
|
15 |
-
openai.api_key =
|
16 |
|
17 |
def generate(prompt):
|
18 |
-
print(API_URL,API_KEY)
|
19 |
|
20 |
try:
|
21 |
response = openai.ChatCompletion.create(
|
|
|
12 |
API_URL = config.get('API', 'OPEN_AI_URL')
|
13 |
# print(API_URL,API_KEY)
|
14 |
# Set the OpenAI API key
|
15 |
+
openai.api_key = API_KEY
|
16 |
|
17 |
def generate(prompt):
|
18 |
+
# print(API_URL,API_KEY)
|
19 |
|
20 |
try:
|
21 |
response = openai.ChatCompletion.create(
|