Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,108 +1,120 @@
|
|
| 1 |
-
import streamlit as st
|
| 2 |
-
|
| 3 |
-
st.set_page_config(page_title="πPrescripto AI", layout="centered")
|
| 4 |
-
|
| 5 |
|
| 6 |
st.markdown("""
|
| 7 |
<style>
|
| 8 |
-
.prescripto-
|
| 9 |
-
|
| 10 |
-
padding: 30px
|
| 11 |
-
background:
|
| 12 |
border-radius: 16px;
|
| 13 |
-
box-shadow: 0
|
| 14 |
}
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
font-size:
|
| 18 |
-
|
|
|
|
|
|
|
| 19 |
}
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
|
|
|
| 23 |
}
|
| 24 |
|
| 25 |
-
.prescripto-
|
| 26 |
background-color: #ffffff;
|
| 27 |
-
padding:
|
| 28 |
-
margin-top:
|
| 29 |
-
border-
|
| 30 |
-
border-
|
| 31 |
-
box-shadow: 0
|
| 32 |
}
|
| 33 |
|
| 34 |
-
.prescripto-
|
| 35 |
-
|
|
|
|
| 36 |
}
|
| 37 |
|
| 38 |
-
.prescripto-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
color: #444;
|
| 42 |
}
|
| 43 |
|
| 44 |
-
.prescripto-
|
| 45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
}
|
| 48 |
|
| 49 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
color: #36D1DC;
|
| 51 |
}
|
| 52 |
|
| 53 |
-
.
|
| 54 |
-
color: #555;
|
| 55 |
font-size: 16px;
|
|
|
|
| 56 |
}
|
| 57 |
|
| 58 |
-
.
|
| 59 |
-
margin:
|
| 60 |
}
|
| 61 |
</style>
|
| 62 |
""", unsafe_allow_html=True)
|
| 63 |
|
| 64 |
-
|
| 65 |
st.markdown("""
|
| 66 |
-
<div class="prescripto-
|
| 67 |
-
|
| 68 |
-
<
|
| 69 |
-
|
| 70 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
|
| 72 |
-
|
| 73 |
-
<
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
<li>βοΈ Saves time, avoids confusion, and prevents medication errors</li>
|
| 82 |
-
</ul>
|
| 83 |
-
|
| 84 |
-
<p style='font-weight: 600;'>Ideal for:</p>
|
| 85 |
-
<ul>
|
| 86 |
-
<li>π΅ Elderly patients needing clarity</li>
|
| 87 |
-
<li>π¨βπ©βπ§βπ¦ Family members managing medicines</li>
|
| 88 |
-
<li>π©ββοΈ Caregivers, nurses, and pharmacists</li>
|
| 89 |
-
<li>π± Anyone who wants safe and informed medicine use</li>
|
| 90 |
-
</ul>
|
| 91 |
-
|
| 92 |
-
<p style='text-align: center; font-style: italic; color: #999;'>
|
| 93 |
-
Built using EasyOCR, HuggingFace LLMs, LangChain & Streamlit
|
| 94 |
-
</p>
|
| 95 |
-
</div>
|
| 96 |
-
""", unsafe_allow_html=True)
|
| 97 |
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
|
|
| 102 |
<p>
|
| 103 |
<strong>Harika Padyala</strong><br>
|
| 104 |
-
Passionate AI
|
| 105 |
-
|
| 106 |
</p>
|
| 107 |
<div>
|
| 108 |
<a href="https://github.com/Harika22-08?tab=repositories" target="_blank">
|
|
|
|
| 1 |
+
import streamlit as st
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
st.markdown("""
|
| 4 |
<style>
|
| 5 |
+
.prescripto-container {
|
| 6 |
+
margin-top: 40px;
|
| 7 |
+
padding: 30px;
|
| 8 |
+
background: #f8f9fa;
|
| 9 |
border-radius: 16px;
|
| 10 |
+
box-shadow: 0 8px 24px rgba(0,0,0,0.05);
|
| 11 |
}
|
| 12 |
+
|
| 13 |
+
.prescripto-title {
|
| 14 |
+
font-size: 28px;
|
| 15 |
+
color: #2c3e50;
|
| 16 |
+
font-weight: 700;
|
| 17 |
+
margin-bottom: 12px;
|
| 18 |
}
|
| 19 |
+
|
| 20 |
+
.prescripto-subtitle {
|
| 21 |
+
font-size: 17px;
|
| 22 |
+
color: #666;
|
| 23 |
+
margin-bottom: 20px;
|
| 24 |
}
|
| 25 |
|
| 26 |
+
.prescripto-features, .prescripto-ideal {
|
| 27 |
background-color: #ffffff;
|
| 28 |
+
padding: 20px;
|
| 29 |
+
margin-top: 20px;
|
| 30 |
+
border-radius: 12px;
|
| 31 |
+
border-left: 5px solid #36D1DC;
|
| 32 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
|
| 33 |
}
|
| 34 |
|
| 35 |
+
.prescripto-features ul, .prescripto-ideal ul {
|
| 36 |
+
list-style-type: none;
|
| 37 |
+
padding-left: 0;
|
| 38 |
}
|
| 39 |
|
| 40 |
+
.prescripto-features li::before {
|
| 41 |
+
content: "β
";
|
| 42 |
+
color: #2ecc71;
|
|
|
|
| 43 |
}
|
| 44 |
|
| 45 |
+
.prescripto-ideal li::before {
|
| 46 |
+
content: "π‘ ";
|
| 47 |
+
color: #f39c12;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.prescripto-built-note {
|
| 51 |
text-align: center;
|
| 52 |
+
font-style: italic;
|
| 53 |
+
color: #888;
|
| 54 |
+
margin-top: 25px;
|
| 55 |
+
font-size: 15px;
|
| 56 |
}
|
| 57 |
|
| 58 |
+
.creator-section {
|
| 59 |
+
margin-top: 50px;
|
| 60 |
+
text-align: center;
|
| 61 |
+
padding: 20px;
|
| 62 |
+
border-top: 1px solid #eee;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
.creator-section h4 {
|
| 66 |
+
font-size: 20px;
|
| 67 |
color: #36D1DC;
|
| 68 |
}
|
| 69 |
|
| 70 |
+
.creator-section p {
|
|
|
|
| 71 |
font-size: 16px;
|
| 72 |
+
color: #555;
|
| 73 |
}
|
| 74 |
|
| 75 |
+
.creator-section a {
|
| 76 |
+
margin: 0 10px;
|
| 77 |
}
|
| 78 |
</style>
|
| 79 |
""", unsafe_allow_html=True)
|
| 80 |
|
|
|
|
| 81 |
st.markdown("""
|
| 82 |
+
<div class="prescripto-container">
|
| 83 |
+
|
| 84 |
+
<div class="prescripto-title">π Why Prescripto AI?</div>
|
| 85 |
+
<div class="prescripto-subtitle">Transform unreadable prescriptions into clear medicine insights β powered by AI.</div>
|
| 86 |
+
|
| 87 |
+
<div class="prescripto-features">
|
| 88 |
+
<ul>
|
| 89 |
+
<li>Upload any prescription photo (handwritten or typed)</li>
|
| 90 |
+
<li>Auto-extract medicine names and timings using OCR</li>
|
| 91 |
+
<li>Get dosage, side effects, and usage instructions from AI</li>
|
| 92 |
+
<li>No confusion, no guessing β stay safe and informed</li>
|
| 93 |
+
</ul>
|
| 94 |
+
</div>
|
| 95 |
|
| 96 |
+
<div class="prescripto-ideal">
|
| 97 |
+
<p style="font-weight:600; margin-bottom: 10px;">Perfect for:</p>
|
| 98 |
+
<ul>
|
| 99 |
+
<li>Senior citizens or non-medical users</li>
|
| 100 |
+
<li>Busy parents managing family health</li>
|
| 101 |
+
<li>Caregivers and healthcare workers</li>
|
| 102 |
+
<li>Anyone who wants clarity about their medication</li>
|
| 103 |
+
</ul>
|
| 104 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
+
<div class="prescripto-built-note">
|
| 107 |
+
π€ Built with EasyOCR, HuggingFace LLMs, LangChain, and Streamlit π
|
| 108 |
+
</div>
|
| 109 |
|
| 110 |
+
</div>
|
| 111 |
+
|
| 112 |
+
<div class="creator-section">
|
| 113 |
+
<h4>π©βπ» Meet the Creator</h4>
|
| 114 |
<p>
|
| 115 |
<strong>Harika Padyala</strong><br>
|
| 116 |
+
Passionate AI Innovator & Data Explorer.<br>
|
| 117 |
+
Making healthcare easier, one AI tool at a time!
|
| 118 |
</p>
|
| 119 |
<div>
|
| 120 |
<a href="https://github.com/Harika22-08?tab=repositories" target="_blank">
|