segestic commited on
Commit
00635be
1 Parent(s): d8efe75

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +29 -0
app.py CHANGED
@@ -1,4 +1,15 @@
1
  import streamlit as st
 
 
 
 
 
 
 
 
 
 
 
2
  import json
3
  import requests
4
  from PIL import Image
@@ -84,6 +95,24 @@ with col2:
84
  #st.header("Sample MRI Image")
85
  st.image( "https://res.cloudinary.com/segestic/image/upload/v1670497190/covid/images/Y99_ntvrog.jpg", width=200, caption='Sample Brain MRI Image Image')
86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
 
88
 
89
  #streamlit run app.py
 
1
  import streamlit as st
2
+ st.set_page_config(
3
+ page_title="Brain Tumor Prediction",
4
+ page_icon="🦠",
5
+ layout="centered",
6
+ initial_sidebar_state="expanded",
7
+ menu_items={
8
+ 'Get Help': 'https://iot.neu.edu.tr',
9
+ 'Report a bug': "https://iot.neu.edu.tr",
10
+ 'About': "# This is a Brain Tumor Predition App using *CNN* Deep Learning Technique."
11
+ }
12
+ )
13
  import json
14
  import requests
15
  from PIL import Image
 
95
  #st.header("Sample MRI Image")
96
  st.image( "https://res.cloudinary.com/segestic/image/upload/v1670497190/covid/images/Y99_ntvrog.jpg", width=200, caption='Sample Brain MRI Image Image')
97
 
98
+ hide_menu_and_footer_style = """
99
+ <style>
100
+ #MainMenu {visibility: hidden;}
101
+ footer {visibility: hidden;}
102
+
103
+ footer:after {
104
+ content:'AI IOT app';
105
+ visibility: visible;
106
+ display: block;
107
+ position: relative;
108
+ #background-color: red;
109
+ color: blue;
110
+ padding: 5px;
111
+ top: 2px;
112
+
113
+ </style>
114
+ """
115
+ st.markdown(hide_menu_and_footer_style, unsafe_allow_html=True)
116
 
117
 
118
  #streamlit run app.py