AjayKr09 commited on
Commit
4bb4b5a
·
verified ·
1 Parent(s): 41f5877

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,6 +25,6 @@ response = openai.chat.completion.create(
25
 
26
  if st.button('Classify'):
27
  if email_text:
28
- st.write(f'The email is classified as: **{response['choices'][0]['message']['content']}**')
29
  else:
30
  st.write('Please enter some text to classify.')
 
25
 
26
  if st.button('Classify'):
27
  if email_text:
28
+ st.write(f'The email is classified as: **{response.choices[0].message.content}**')
29
  else:
30
  st.write('Please enter some text to classify.')