Peiiiiiiiiru commited on
Commit
56f4034
·
verified ·
1 Parent(s): b33b71d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def calculate_movie_potential(extracted_text, api_key):
36
  max_tokens=1000,
37
  temperature=0.7
38
  )
39
- response_text = response.choices[0]['message']['content'].strip()
40
 
41
  return response_text
42
 
 
36
  max_tokens=1000,
37
  temperature=0.7
38
  )
39
+ response_text = response.choices[0].message.content.strip()
40
 
41
  return response_text
42