minwoosun commited on
Commit
5cdd2ae
1 Parent(s): b615550

Back to white background && include markdown text

Browse files
Files changed (1) hide show
  1. app.py +34 -5
app.py CHANGED
@@ -129,16 +129,45 @@ def main(input_file_path, species):
129
  if __name__ == "__main__":
130
 
131
  css = """
132
- body {background-color: black; color: white;}
133
- .gradio-container {background-color: black; color: white;}
134
- .gr-file, .gr-image {background-color: #333; color: white; border-color: white;}
135
  """
136
 
137
  with gr.Blocks(css=css) as demo:
138
  gr.Markdown(
139
  '''
140
  <div style="text-align:center; margin-bottom:20px;">
141
- <span style="font-size:3em; font-weight:bold; color: white;">UCE 100M Demo</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  </div>
143
  '''
144
  )
@@ -157,4 +186,4 @@ if __name__ == "__main__":
157
  outputs=[image_output, file_output]
158
  )
159
 
160
- demo.launch()
 
129
  if __name__ == "__main__":
130
 
131
  css = """
132
+ body {background-color: white; color: black;}
133
+ .gradio-container {background-color: white; color: black;}
134
+ .gr-file, .gr-image {background-color: #f0f0f0; color: black; border-color: black;}
135
  """
136
 
137
  with gr.Blocks(css=css) as demo:
138
  gr.Markdown(
139
  '''
140
  <div style="text-align:center; margin-bottom:20px;">
141
+ <span style="font-size:3em; font-weight:bold; color: black;">UCE 100M Demo</span>
142
+ </div>
143
+ <div style="text-align:center; margin-bottom:10px;">
144
+ <span style="font-size:1.5em; font-weight:bold; color: black;">Universal Cell Embeddings: Explore Single Cell Data</span>
145
+ </div>
146
+ <div style="text-align:center; margin-bottom:20px;">
147
+ <a href="https://github.com/minwoosun/UCE">
148
+ <img src="https://badges.aleen42.com/src/github.svg" alt="GitHub" style="display:inline-block; margin-right:10px;">
149
+ </a>
150
+ <a href="https://www.biorxiv.org/content/10.1101/2023.11.28.568918v1">
151
+ <img src="https://img.shields.io/badge/bioRxiv-2023.11.28.568918-green?style=plastic" alt="Paper" style="display:inline-block; margin-right:10px;">
152
+ </a>
153
+ </div>
154
+ <div style="text-align:left; margin-bottom:20px; color: black;">
155
+ Upload a `.h5ad` single cell gene expression file and select the species (Human/Mouse).
156
+ The demo will generate UMAP projections of the embeddings and allow you to download the embeddings for further analysis.
157
+ </div>
158
+ <div style="margin-bottom:20px; color: black;">
159
+ <ol style="list-style:none; padding-left:0;">
160
+ <li>1. Upload your `.h5ad` file</li>
161
+ <li>2. Select the species</li>
162
+ <li>3. Click "Run" to view the UMAP scatter plot</li>
163
+ <li>4. Download the UMAP coordinates</li>
164
+ </ol>
165
+ </div>
166
+ <div style="text-align:left; line-height:1.8; color: black;">
167
+ Please consider citing the following paper if you use this tool in your research:
168
+ </div>
169
+ <div style="text-align:left; line-height:1.8; color: black;">
170
+ Rosen, Y., Roohani, Y., Agarwal, A., Samotorčan, L., Tabula Sapiens Consortium, Quake, S. R., & Leskovec, J. Universal Cell Embeddings: A Foundation Model for Cell Biology. bioRxiv. https://doi.org/10.1101/2023.11.28.568918
171
  </div>
172
  '''
173
  )
 
186
  outputs=[image_output, file_output]
187
  )
188
 
189
+ demo.launch()