File size: 1,695 Bytes
629126e
 
5c1be38
629126e
 
 
 
5c1be38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ef5c65a
5c1be38
 
 
 
 
 
629126e
 
 
5c1be38
 
 
 
 
 
 
629126e
 
5c1be38
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import streamlit as st
from PIL import Image
import base64

# Add a title
st.set_page_config(page_title="Select Diagnosis", layout="centered")

with open("./logo.png", "rb") as f:
    image_data = f.read()
    image_base64 = base64.b64encode(image_data).decode("utf-8")

# Add custom CSS for the header
header_css = """
<style>
.header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-size: 18px;
}

.header img {
    margin-right: 10px;
    width: 80px;
    height: 50px;
}

.header p {
    font-size: 14px;
}
</style>
"""

# Render the custom CSS
st.markdown(header_css, unsafe_allow_html=True)

# Render the header
header_html = f"""
<div class="header">
    <img src='data:image/jpeg;base64,{image_base64}' alt="Logo"/>
    <p>Disclaimer: The purpose of this application is solely for demonstration. 1001epochs does not claim ownership for the results. Contact: contact@1001epochs.co.uk for full solution.</p>
</div>
"""

st.markdown(header_html, unsafe_allow_html=True)

# Render the main content
st.title("Medical Diagnosis App")

st.markdown("")
st.markdown(
    "<li> Currently Brain Tumors, X-rays, and Skin Lesions are ready for diagnosis </li>"
    "<li>The Models also explain what area in the images is the cause of diagnosis </li>"
    "<li>Currently, the models are trained on a small dataset and will be trained on a larger dataset in the future</li>"
    '<li> The Application also provides generated information on how to diagnose the disease and what should the patient do in that case</li>',
    unsafe_allow_html=True
)

with st.sidebar.container():
    st.image("https://media.giphy.com/media/Yp9Fi2moJ026Q/giphy.gif")