Christopher Digno
commited on
Commit
·
94a6e7d
1
Parent(s):
16a5799
Corrected quotation typo at app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ if __name__ == "__main__":
|
|
| 139 |
pipe = load_model()
|
| 140 |
with st.spinner("Predicting..."):
|
| 141 |
preds = predict(text.strip(), pipe)
|
| 142 |
-
st.markdown(f
|
| 143 |
|
| 144 |
col1, col2 = st.columns([1,2])
|
| 145 |
# col1, col2 = st.columns(2)
|
|
@@ -152,7 +152,7 @@ if __name__ == "__main__":
|
|
| 152 |
hide_index=True,
|
| 153 |
use_container_width=True)
|
| 154 |
|
| 155 |
-
col2.markdown(f
|
| 156 |
col2.write(preds.at[0, "description"])
|
| 157 |
|
| 158 |
st.write(
|
|
|
|
| 139 |
pipe = load_model()
|
| 140 |
with st.spinner("Predicting..."):
|
| 141 |
preds = predict(text.strip(), pipe)
|
| 142 |
+
st.markdown(f'**Result: {preds.at[0, "Cause"]}**')
|
| 143 |
|
| 144 |
col1, col2 = st.columns([1,2])
|
| 145 |
# col1, col2 = st.columns(2)
|
|
|
|
| 152 |
hide_index=True,
|
| 153 |
use_container_width=True)
|
| 154 |
|
| 155 |
+
col2.markdown(f'Explanation of **{preds.at[0, "Cause"]}**:')
|
| 156 |
col2.write(preds.at[0, "description"])
|
| 157 |
|
| 158 |
st.write(
|