Update app.py
Browse files
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
|
| 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.')
|