Update app.py
Browse files
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def summarize(txt):
|
|
| 73 |
st.write(f"Text: {text}")
|
| 74 |
st.write(f"Sentiment: {results[i]['label']}, Score: {results[i]['score']:.2f}\n")
|
| 75 |
else:
|
| 76 |
-
st.write(f"Text: {
|
| 77 |
st.write(f"Sentiment: {results[0]['label']}, Score: {results[0]['score']:.2f}\n")
|
| 78 |
|
| 79 |
# Create a button and trigger the summarize function when clicked
|
|
|
|
| 73 |
st.write(f"Text: {text}")
|
| 74 |
st.write(f"Sentiment: {results[i]['label']}, Score: {results[i]['score']:.2f}\n")
|
| 75 |
else:
|
| 76 |
+
st.write(f"Text: {txt_converted}")
|
| 77 |
st.write(f"Sentiment: {results[0]['label']}, Score: {results[0]['score']:.2f}\n")
|
| 78 |
|
| 79 |
# Create a button and trigger the summarize function when clicked
|