TorsteinAE commited on
Commit
743e2ec
1 Parent(s): 6c9bd56
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -38,7 +38,8 @@ def transcriptToText(transcript):
38
  # Summary using OpenAI API
39
  import openai
40
 
41
- def textToSummary(text):
 
42
  response = openai.Completion.create(
43
  model="text-davinci-003",
44
  prompt= "Summarize this in 200 words or less:\n\n" + text,
 
38
  # Summary using OpenAI API
39
  import openai
40
 
41
+ def textToSummary(text,OpenAIkey):
42
+ openai.api_key = OpenAIkey
43
  response = openai.Completion.create(
44
  model="text-davinci-003",
45
  prompt= "Summarize this in 200 words or less:\n\n" + text,