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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +116 -0
app.py CHANGED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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">
109
+ <img src="https://img.shields.io/badge/GitHub-000000?style=for-the-badge&logo=github&logoColor=white">
110
+ </a>
111
+ <a href="https://www.linkedin.com/in/harika-padyala-67a882305/" target="_blank">
112
+ <img src="https://img.shields.io/badge/LinkedIn-0A66C2?style=for-the-badge&logo=linkedin&logoColor=white">
113
+ </a>
114
+ </div>
115
+ </div>
116
+ """, unsafe_allow_html=True)