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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -88
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
- .prescripto-container {
7
- margin-top: 40px;
8
- padding: 30px;
9
- background: #fefefe;
10
- border-radius: 16px;
11
- box-shadow: 0 8px 24px rgba(0,0,0,0.05);
12
- font-family: 'Segoe UI', sans-serif;
13
- }
14
-
15
- .prescripto-title {
16
- font-size: 30px;
17
- color: #2c3e50;
18
- font-weight: bold;
19
- margin-bottom: 10px;
20
- }
21
-
22
- .prescripto-subtitle {
23
- font-size: 18px;
24
- color: #555;
25
- margin-bottom: 20px;
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
- <div class="prescripto-ideal">
82
- <p style="font-weight:600; margin-bottom: 10px;">Perfect for:</p>
83
- <ul>
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
+