Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,96 +1,33 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
# Inject custom CSS styles for the div classes
|
| 4 |
st.markdown("""
|
| 5 |
-
<style>
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
border
|
| 11 |
-
|
| 12 |
-
font-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
margin-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
}
|
| 27 |
-
|
| 28 |
-
.prescripto-features, .prescripto-ideal {
|
| 29 |
-
background-color: #ffffff;
|
| 30 |
-
padding: 20px;
|
| 31 |
-
margin-top: 20px;
|
| 32 |
-
border-radius: 12px;
|
| 33 |
-
border-left: 5px solid #36D1DC;
|
| 34 |
-
box-shadow: 0 4px 12px rgba(0,0,0,0.03);
|
| 35 |
-
}
|
| 36 |
-
|
| 37 |
-
.prescripto-features ul, .prescripto-ideal ul {
|
| 38 |
-
list-style: none;
|
| 39 |
-
padding-left: 0;
|
| 40 |
-
margin-top: 10px;
|
| 41 |
-
}
|
| 42 |
-
|
| 43 |
-
.prescripto-features li::before {
|
| 44 |
-
content: "β
";
|
| 45 |
-
color: #27ae60;
|
| 46 |
-
font-weight: bold;
|
| 47 |
-
}
|
| 48 |
-
|
| 49 |
-
.prescripto-ideal li::before {
|
| 50 |
-
content: "π‘ ";
|
| 51 |
-
color: #f39c12;
|
| 52 |
-
font-weight: bold;
|
| 53 |
-
}
|
| 54 |
-
|
| 55 |
-
.prescripto-built-note {
|
| 56 |
-
text-align: center;
|
| 57 |
-
font-style: italic;
|
| 58 |
-
color: #888;
|
| 59 |
-
margin-top: 25px;
|
| 60 |
-
font-size: 15px;
|
| 61 |
-
}
|
| 62 |
-
</style>
|
| 63 |
-
""", unsafe_allow_html=True)
|
| 64 |
-
|
| 65 |
-
# Now render the HTML using your div classes (inside container)
|
| 66 |
-
st.markdown("""
|
| 67 |
-
<div class="prescripto-container">
|
| 68 |
-
|
| 69 |
-
<div class="prescripto-title">π Why Prescripto AI?</div>
|
| 70 |
-
<div class="prescripto-subtitle">Transform unreadable prescriptions into clear medicine insights β powered by AI.</div>
|
| 71 |
-
|
| 72 |
-
<div class="prescripto-features">
|
| 73 |
-
<ul>
|
| 74 |
-
<li>Upload any prescription photo (handwritten or typed)</li>
|
| 75 |
-
<li>Auto-extract medicine names and timings using OCR</li>
|
| 76 |
-
<li>Get dosage, side effects, and usage instructions from AI</li>
|
| 77 |
-
<li>No confusion, no guessing β stay safe and informed</li>
|
| 78 |
</ul>
|
| 79 |
</div>
|
| 80 |
|
| 81 |
-
<
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
<li>Senior citizens or non-medical users</li>
|
| 85 |
-
<li>Busy parents managing family health</li>
|
| 86 |
-
<li>Caregivers and healthcare workers</li>
|
| 87 |
-
<li>Anyone who wants clarity about their medication</li>
|
| 88 |
-
</ul>
|
| 89 |
-
</div>
|
| 90 |
-
|
| 91 |
-
<div class="prescripto-built-note">
|
| 92 |
-
π€ Built with EasyOCR, HuggingFace LLMs, LangChain, and Streamlit π
|
| 93 |
-
</div>
|
| 94 |
-
|
| 95 |
</div>
|
| 96 |
""", unsafe_allow_html=True)
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
| 3 |
st.markdown("""
|
| 4 |
+
<div style="background-color: #f9f9f9; padding: 30px; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); margin-top: 40px;">
|
| 5 |
+
|
| 6 |
+
<h2 style="color: #2c3e50; text-align: center;">π Why <span style="color:#ff4b2b;">Prescripto AI</span>?</h2>
|
| 7 |
+
<p style="text-align: center; font-size: 16px; color: #555;">Transform unreadable prescriptions into clear medicine instructions using AI π</p>
|
| 8 |
+
|
| 9 |
+
<hr style="margin: 25px 0; border: none; height: 1px; background: #eee;">
|
| 10 |
+
|
| 11 |
+
<ul style="font-size: 16px; line-height: 1.7; color: #333;">
|
| 12 |
+
<li>π· <strong>Upload a handwritten or printed prescription</strong></li>
|
| 13 |
+
<li>π§ <strong>AI extracts medicine names, doses & timings</strong></li>
|
| 14 |
+
<li>π‘ <strong>Get side effects and special instructions instantly</strong></li>
|
| 15 |
+
<li>π <strong>Stay safe, avoid confusion & errors</strong></li>
|
| 16 |
+
</ul>
|
| 17 |
+
|
| 18 |
+
<div style="margin-top: 25px;">
|
| 19 |
+
<p style="font-weight: 600; margin-bottom: 10px;">π₯ Ideal For:</p>
|
| 20 |
+
<ul style="line-height: 1.6; color: #444;">
|
| 21 |
+
<li>π΄ Elderly users needing clarity</li>
|
| 22 |
+
<li>π¨βπ©βπ§βπ¦ Families managing prescriptions</li>
|
| 23 |
+
<li>π©ββοΈ Nurses, pharmacists & caregivers</li>
|
| 24 |
+
<li>π± Anyone needing quick medicine info</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</ul>
|
| 26 |
</div>
|
| 27 |
|
| 28 |
+
<p style="text-align: center; font-style: italic; color: #888; margin-top: 30px;">
|
| 29 |
+
Built using EasyOCR, HuggingFace LLMs, LangChain & Streamlit π
|
| 30 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
</div>
|
| 32 |
""", unsafe_allow_html=True)
|
| 33 |
+
|