Harika22 commited on
Commit
156fcd3
Β·
verified Β·
1 Parent(s): 3acdf5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +83 -71
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-header {
9
- text-align: center;
10
- padding: 30px 10px;
11
- background: linear-gradient(to right, #36D1DC, #5B86E5);
12
  border-radius: 16px;
13
- box-shadow: 0 4px 16px rgba(0,0,0,0.2);
14
  }
15
- .prescripto-header h1 {
16
- color: white;
17
- font-size: 3em;
18
- margin-bottom: 0;
 
 
19
  }
20
- .prescripto-header h3 {
21
- color: #f0f0f0;
22
- margin-top: 5px;
 
 
23
  }
24
 
25
- .prescripto-box {
26
  background-color: #ffffff;
27
- padding: 25px;
28
- margin-top: 30px;
29
- border-left: 6px solid #36D1DC;
30
- border-radius: 16px;
31
- box-shadow: 0 6px 18px rgba(0,0,0,0.06);
32
  }
33
 
34
- .prescripto-box p {
35
- font-size: 18px;
 
36
  }
37
 
38
- .prescripto-box ul {
39
- font-size: 16px;
40
- line-height: 1.8;
41
- color: #444;
42
  }
43
 
44
- .prescripto-creator {
45
- margin-top: 40px;
 
 
 
 
46
  text-align: center;
 
 
 
 
47
  }
48
 
49
- .prescripto-creator h4 {
 
 
 
 
 
 
 
 
50
  color: #36D1DC;
51
  }
52
 
53
- .prescripto-creator p {
54
- color: #555;
55
  font-size: 16px;
 
56
  }
57
 
58
- .prescripto-creator a {
59
- margin: 5px;
60
  }
61
  </style>
62
  """, unsafe_allow_html=True)
63
 
64
-
65
  st.markdown("""
66
- <div class="prescripto-header">
67
- <h1>πŸ’Š Prescripto AI</h1>
68
- <h3>Smart Prescription Reader & Medicine Assistant</h3>
69
- </div>
70
- """, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
71
 
72
- st.markdown("""
73
- <div class="prescripto-box">
74
- <p><strong>🧾 Struggling to read handwritten prescriptions?</strong><br>
75
- <span style='color: #555;'>Let AI extract and explain your medicine instructions clearly.</span></p>
76
-
77
- <ul>
78
- <li>πŸ“· Upload a photo of a doctor's prescription</li>
79
- <li>πŸ”Ž Extracts medicine names and instructions using OCR + LLM</li>
80
- <li>πŸ’‘ Get dosage info, timings, side effects, and precautions</li>
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
- st.markdown("""
100
- <div class="prescripto-creator">
101
- <h4>πŸ‘©β€πŸ’» About the Creator</h4>
 
102
  <p>
103
  <strong>Harika Padyala</strong><br>
104
- Passionate AI Developer & Data Enthusiast<br>
105
- Building smart, accessible AI apps for everyone! πŸš€
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">