Spaces:
Runtime error
Runtime error
AmitPress commited on
Commit ·
04147aa
1
Parent(s): dd2d825
color change
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ if photo:
|
|
| 27 |
with col1:
|
| 28 |
if snake_type == 'Venomous':
|
| 29 |
st.markdown(f'<span style="color: red;">{snake_type}</span>', unsafe_allow_html=True)
|
| 30 |
-
|
| 31 |
st.markdown(f'<span style="color: green;">{snake_type}</span>', unsafe_allow_html=True)
|
| 32 |
st.markdown(desc.choices[0].text)
|
| 33 |
except:
|
|
|
|
| 27 |
with col1:
|
| 28 |
if snake_type == 'Venomous':
|
| 29 |
st.markdown(f'<span style="color: red;">{snake_type}</span>', unsafe_allow_html=True)
|
| 30 |
+
else:
|
| 31 |
st.markdown(f'<span style="color: green;">{snake_type}</span>', unsafe_allow_html=True)
|
| 32 |
st.markdown(desc.choices[0].text)
|
| 33 |
except:
|