Harika22 commited on
Commit
67c4ee2
Β·
verified Β·
1 Parent(s): 43fea27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +58 -25
app.py CHANGED
@@ -1,33 +1,66 @@
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
 
 
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