Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import streamlit as st
|
2 |
-
import streamlit.components.v1 as components
|
3 |
import os
|
4 |
from PIL import Image
|
5 |
# Set the page layout
|
@@ -831,7 +830,7 @@ if st.session_state.framework == "gen":
|
|
831 |
</h1>
|
832 |
</div>
|
833 |
<div class="content">
|
834 |
-
|
835 |
—empowering you with personalized insights, early warnings, and lifestyle tips to keep your heart healthy and strong.
|
836 |
</div>
|
837 |
</div>
|
@@ -1032,7 +1031,7 @@ with st.container(key = "main"):
|
|
1032 |
elif st.session_state.form5 == "next" :
|
1033 |
model = genai.GenerativeModel('gemini-2.0-flash')
|
1034 |
with st.container(key = "expert"):
|
1035 |
-
with st.spinner("Model is
|
1036 |
response = model.generate_content(f"""
|
1037 |
Hi! A person named {st.session_state.name} has just been assessed for heart disease risk.
|
1038 |
|
@@ -1080,5 +1079,4 @@ with st.container(key = "main"):
|
|
1080 |
st.write(response.text)
|
1081 |
|
1082 |
|
1083 |
-
|
1084 |
|
|
|
1 |
import streamlit as st
|
|
|
2 |
import os
|
3 |
from PIL import Image
|
4 |
# Set the page layout
|
|
|
830 |
</h1>
|
831 |
</div>
|
832 |
<div class="content">
|
833 |
+
HeartCheck uses intelligent risk analysis to predict your likelihood of <br>heart disease.
|
834 |
—empowering you with personalized insights, early warnings, and lifestyle tips to keep your heart healthy and strong.
|
835 |
</div>
|
836 |
</div>
|
|
|
1031 |
elif st.session_state.form5 == "next" :
|
1032 |
model = genai.GenerativeModel('gemini-2.0-flash')
|
1033 |
with st.container(key = "expert"):
|
1034 |
+
with st.spinner("Model is Analysing your Results..."):
|
1035 |
response = model.generate_content(f"""
|
1036 |
Hi! A person named {st.session_state.name} has just been assessed for heart disease risk.
|
1037 |
|
|
|
1079 |
st.write(response.text)
|
1080 |
|
1081 |
|
|
|
1082 |
|