-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.py
More file actions
38 lines (33 loc) · 1.44 KB
/
app.py
File metadata and controls
38 lines (33 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import streamlit as st
import base64
from PIL import Image
import numpy as np
import time
# Set page config as the first Streamlit command
st.set_page_config(page_title="MedSarthi: Pharmacist's Assistant", page_icon="💊", layout="centered")
def showGif():
with open("./assets/the-simpsons-grampa.gif", "rb") as file_:
contents = file_.read()
data_url = base64.b64encode(contents).decode("utf-8")
st.markdown(
f"""
<div style="display: flex; justify-content: center;">
<img src="data:image/gif;base64,{data_url}" alt="Reading-medications" style="width: 500px; height: auto;">
</div>
""",
unsafe_allow_html=True,
)
st.title("MedSarthi: Pharmacist's Assistant")
st.write("This tool simulates the reading of handwritten prescriptions, converting them into structured orders, and checking for dosage errors.")
st.divider()
st.subheader("AIM 🎯")
st.markdown("This project aims to minimize human errors in prescription reading from doctor's messy handwriiten by implementing CNN + biLTSM model using model dataset")
st.divider()
showGif()
st.subheader("Problems in Prescription recognition 👨🚒")
st.markdown("**👉Incorrect prescription comprehension may lead to worsen patient condition**")
st.markdown("**👉Miscompreshension of dosages**")
st.markdown("**👉High chance to assign wrong medication**")
st.divider()
st.subheader("Solution 🔮")
st.image('./assets/solution.jpg')