AmitPress commited on
Commit
62e2a28
·
1 Parent(s): 085270e

color change red

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,9 +25,9 @@ if photo:
25
  desc = openai.Completion.create(engine="text-davinci-003", prompt=f"Give a short description of {genus} {species}", max_tokens=500)
26
  with col1:
27
  if venomousity.choices[0].text == 'Venomous':
28
- st.markdown(f"<h1 style='color: red;'>{venomousity.choices[0].text}</h1>", unsafe_allow_html=True)
29
  else:
30
- st.markdown(f"<h1 style='color: green;'>{venomousity.choices[0].text}</h1>", unsafe_allow_html=True)
31
  st.markdown(desc.choices[0].text)
32
  except:
33
  col1.write(f"Error: There might be some network issue")
 
25
  desc = openai.Completion.create(engine="text-davinci-003", prompt=f"Give a short description of {genus} {species}", max_tokens=500)
26
  with col1:
27
  if venomousity.choices[0].text == 'Venomous':
28
+ st.markdown(f'<h1 style="color: red;">{venomousity.choices[0].text}</h1>', unsafe_allow_html=True)
29
  else:
30
+ st.markdown(f'<h1 style="color: green;">{venomousity.choices[0].text}</h1>', unsafe_allow_html=True)
31
  st.markdown(desc.choices[0].text)
32
  except:
33
  col1.write(f"Error: There might be some network issue")