TDN-M commited on
Commit
0af8625
·
verified ·
1 Parent(s): dde18a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def extract_key_contents(script, num_contents=10):
68
  ]
69
  )
70
  # Sửa lỗi truy cập đối tượng không thể subscript
71
- key_contents = response['choices'][0]['message']['content'].split('\n')
72
  return key_contents[:num_contents]
73
  except Exception as e:
74
  print(f"Lỗi khi trích xuất nội dung: {str(e)}")
 
68
  ]
69
  )
70
  # Sửa lỗi truy cập đối tượng không thể subscript
71
+ key_contents = response.choices[0].message.content.split('\n')
72
  return key_contents[:num_contents]
73
  except Exception as e:
74
  print(f"Lỗi khi trích xuất nội dung: {str(e)}")