chris1nexus
commited on
Commit
β’
cd94e60
1
Parent(s):
877ebc7
Update
Browse files
README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
emoji: π
|
4 |
colorFrom: purple
|
5 |
colorTo: yellow
|
|
|
1 |
---
|
2 |
+
title: AioMedica
|
3 |
emoji: π
|
4 |
colorFrom: purple
|
5 |
colorTo: yellow
|
app.py
CHANGED
@@ -45,7 +45,7 @@ def main():
|
|
45 |
os.environ['GT_WEIGHT_PATH'] = os.path.join(os.environ['WEIGHTS_PATH'], 'graph_transformer', 'GraphCAM.pth')
|
46 |
|
47 |
|
48 |
-
st.set_page_config(page_title="",layout='wide')
|
49 |
predictor = load_model()#Predictor()
|
50 |
|
51 |
|
@@ -90,6 +90,7 @@ def main():
|
|
90 |
<a href="https://github.com/Chris1nexus/inference-graph-transformer" target="_blank">Project Repository</a>
|
91 |
</p>
|
92 |
<p class="aligncenter">
|
|
|
93 |
<a href="https://github.com/Chris1nexus/inference-graph-transformer" target="_blank">
|
94 |
<img src="https://img.shields.io/github/stars/Chris1nexus/inference-graph-transformer?style=social"/>
|
95 |
</a>
|
@@ -105,11 +106,12 @@ def main():
|
|
105 |
)
|
106 |
|
107 |
|
108 |
-
|
109 |
if choice == "About":
|
110 |
st.title(choice)
|
111 |
-
|
112 |
-
|
|
|
|
|
113 |
|
114 |
if choice == "Visualize WSI slide":
|
115 |
st.title(choice)
|
@@ -132,10 +134,14 @@ def main():
|
|
132 |
|
133 |
if choice == "Cancer Detection":
|
134 |
state = dict()
|
135 |
-
|
136 |
st.title(choice)
|
137 |
st.markdown(DETECT_TEXT)
|
138 |
uploaded_file = st.file_uploader("Choose a WSI slide file to diagnose (.svs)")
|
|
|
|
|
|
|
|
|
139 |
if uploaded_file is not None:
|
140 |
# To read file as bytes:
|
141 |
#print(uploaded_file)
|
|
|
45 |
os.environ['GT_WEIGHT_PATH'] = os.path.join(os.environ['WEIGHTS_PATH'], 'graph_transformer', 'GraphCAM.pth')
|
46 |
|
47 |
|
48 |
+
#st.set_page_config(page_title="",layout='wide')
|
49 |
predictor = load_model()#Predictor()
|
50 |
|
51 |
|
|
|
90 |
<a href="https://github.com/Chris1nexus/inference-graph-transformer" target="_blank">Project Repository</a>
|
91 |
</p>
|
92 |
<p class="aligncenter">
|
93 |
+
|
94 |
<a href="https://github.com/Chris1nexus/inference-graph-transformer" target="_blank">
|
95 |
<img src="https://img.shields.io/github/stars/Chris1nexus/inference-graph-transformer?style=social"/>
|
96 |
</a>
|
|
|
106 |
)
|
107 |
|
108 |
|
|
|
109 |
if choice == "About":
|
110 |
st.title(choice)
|
111 |
+
README = requests.get("https://raw.githubusercontent.com/Chris1nexus/inference-graph-transformer/master/README.md").text
|
112 |
+
README = str(README).replace('width="1200"','width="700"')
|
113 |
+
# st.title(choose)
|
114 |
+
st.markdown(README, unsafe_allow_html=True)
|
115 |
|
116 |
if choice == "Visualize WSI slide":
|
117 |
st.title(choice)
|
|
|
134 |
|
135 |
if choice == "Cancer Detection":
|
136 |
state = dict()
|
137 |
+
|
138 |
st.title(choice)
|
139 |
st.markdown(DETECT_TEXT)
|
140 |
uploaded_file = st.file_uploader("Choose a WSI slide file to diagnose (.svs)")
|
141 |
+
st.markdown("Examples can be chosen at the [GDC Data repository](https://portal.gdc.cancer.gov/repository?facetTab=cases&filters=%7B%22op%22%3A%22and%22%2C%22content%22%3A%5B%7B%22op%22%3A%22in%22%2C%22content%22%3A%7B%22field%22%3A%22cases.primary_site%22%2C%22value%22%3A%5B%22bronchus%20and%20lung%22%5D%7D%7D%2C%7B%22op%22%3A%22in%22%2C%22content%22%3A%7B%22field%22%3A%22cases.project.program.name%22%2C%22value%22%3A%5B%22TCGA%22%5D%7D%7D%2C%7B%22op%22%3A%22in%22%2C%22content%22%3A%7B%22field%22%3A%22cases.project.project_id%22%2C%22value%22%3A%5B%22TCGA-LUAD%22%2C%22TCGA-LUSC%22%5D%7D%7D%2C%7B%22op%22%3A%22in%22%2C%22content%22%3A%7B%22field%22%3A%22files.experimental_strategy%22%2C%22value%22%3A%5B%22Tissue%20Slide%22%5D%7D%7D%5D%7D)")
|
142 |
+
st.markdown("Alternatively, for simplicity few test cases are provided at the [drive link](https://drive.google.com/drive/folders/1u3SQa2dytZBHHh6eXTlMKY-pZGZ-pwkk?usp=share_link)")
|
143 |
+
|
144 |
+
|
145 |
if uploaded_file is not None:
|
146 |
# To read file as bytes:
|
147 |
#print(uploaded_file)
|