Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,10 +41,11 @@ def getmindmap(topic,openapikey):
|
|
41 |
print(dateforfilesave)
|
42 |
|
43 |
os.environ['OPENAI_API_KEY'] = str(openapikey)
|
44 |
-
|
|
|
45 |
prompt=prompt_text+topic
|
46 |
resp=openai.Completion.create(
|
47 |
-
model="
|
48 |
prompt=prompt,
|
49 |
max_tokens=4000,
|
50 |
temperature=0
|
|
|
41 |
print(dateforfilesave)
|
42 |
|
43 |
os.environ['OPENAI_API_KEY'] = str(openapikey)
|
44 |
+
openai.api_key=str(openapikey)
|
45 |
+
|
46 |
prompt=prompt_text+topic
|
47 |
resp=openai.Completion.create(
|
48 |
+
model="gpt-3.5-turbo",
|
49 |
prompt=prompt,
|
50 |
max_tokens=4000,
|
51 |
temperature=0
|