hra commited on
Commit
b024590
1 Parent(s): 0e2f06d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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="text-davinci-003",
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