Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,33 +1,66 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
-
st.
|
| 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 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
<li>π <strong>Stay safe, avoid confusion & errors</strong></li>
|
| 16 |
-
</ul>
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
<
|
| 23 |
-
<
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
</div>
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
</
|
| 32 |
-
""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
st.set_page_config(page_title="πPrescripto AI", layout="centered")
|
|
|
|
| 4 |
|
| 5 |
+
st.markdown(
|
| 6 |
+
"""
|
| 7 |
+
<div style="text-align: center; padding: 30px 10px; background: linear-gradient(to right, #36D1DC, #5B86E5); border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.2);">
|
| 8 |
+
<h1 style="color: white; font-size: 3em; margin-bottom: 0;">π Prescripto AI</h1>
|
| 9 |
+
<h3 style="color: #f0f0f0; margin-top: 5px;">Smart Prescription Reader & Medicine Assistant</h3>
|
| 10 |
+
</div>
|
| 11 |
+
""",
|
| 12 |
+
unsafe_allow_html=True,
|
| 13 |
+
)
|
|
|
|
|
|
|
| 14 |
|
| 15 |
+
st.markdown(
|
| 16 |
+
"""
|
| 17 |
+
<div style='background-color: #ffffff; padding: 25px; margin-top: 30px; border-left: 6px solid #36D1DC; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); transition: 0.3s ease-in-out;'>
|
| 18 |
+
<p style='font-size: 18px;'>
|
| 19 |
+
<strong>π§Ύ Struggling to read handwritten prescriptions?</strong><br>
|
| 20 |
+
<span style='color: #555;'>Let AI extract and explain your medicine instructions clearly.</span>
|
| 21 |
+
</p>
|
| 22 |
+
<ul style='font-size: 16px; line-height: 1.8; color: #444;'>
|
| 23 |
+
<li>π· Upload a photo of a doctor's prescription</li>
|
| 24 |
+
<li>π Extracts medicine names and instructions using OCR + LLM</li>
|
| 25 |
+
<li>π‘ Get dosage info, timings, side effects, and precautions</li>
|
| 26 |
+
<li>βοΈ Saves time, avoids confusion, and prevents medication errors</li>
|
| 27 |
</ul>
|
| 28 |
+
<p style='font-size: 16px; font-weight: 600; color: #333; margin-top: 15px;'>
|
| 29 |
+
Ideal for:
|
| 30 |
+
</p>
|
| 31 |
+
<ul style='font-size: 15.5px; color: #333; line-height: 1.7;'>
|
| 32 |
+
<li>π΅ Elderly patients needing clarity</li>
|
| 33 |
+
<li>π¨βπ©βπ§βπ¦ Family members managing medicines</li>
|
| 34 |
+
<li>π©ββοΈ Caregivers, nurses, and pharmacists</li>
|
| 35 |
+
<li>π± Anyone who wants safe and informed medicine use</li>
|
| 36 |
+
</ul>
|
| 37 |
+
<p style='text-align: center; font-style: italic; color: #999; margin-top: 25px;'>
|
| 38 |
+
Built using EasyOCR, HuggingFace LLMs, LangChain & Streamlit
|
| 39 |
+
</p>
|
| 40 |
</div>
|
| 41 |
+
""",
|
| 42 |
+
unsafe_allow_html=True,
|
| 43 |
+
)
|
| 44 |
|
| 45 |
+
st.markdown(
|
| 46 |
+
"""
|
| 47 |
+
<div style="margin-top: 40px; text-align: center;">
|
| 48 |
+
<h4 style="color: #36D1DC;">π©βπ» About the Creator</h4>
|
| 49 |
+
<p style="color: #555; font-size: 16px;">
|
| 50 |
+
<strong>Harika Padyala</strong><br>
|
| 51 |
+
Passionate AI Developer & Data Enthusiast<br>
|
| 52 |
+
Building smart, accessible AI apps for everyone! π
|
| 53 |
+
</p>
|
| 54 |
+
<div style="margin-top: 15px;">
|
| 55 |
+
<a href="https://github.com/Harika22-08?tab=repositories" target="_blank">
|
| 56 |
+
<img src="https://img.shields.io/badge/GitHub-000000?style=for-the-badge&logo=github&logoColor=white">
|
| 57 |
+
</a>
|
| 58 |
+
<a href="https://www.linkedin.com/in/harika-padyala-67a882305/" target="_blank">
|
| 59 |
+
<img src="https://img.shields.io/badge/LinkedIn-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white">
|
| 60 |
+
</a>
|
| 61 |
+
</div>
|
| 62 |
+
</div>
|
| 63 |
+
""",
|
| 64 |
+
unsafe_allow_html=True,
|
| 65 |
+
)
|
| 66 |
|