update test css
Browse files
app.py
CHANGED
@@ -128,6 +128,7 @@ def main(input_file_path, species):
|
|
128 |
|
129 |
if __name__ == "__main__":
|
130 |
|
|
|
131 |
css = """
|
132 |
body {background-color: black; color: white;}
|
133 |
.gradio-container {background-color: black; color: white;}
|
@@ -152,39 +153,11 @@ if __name__ == "__main__":
|
|
152 |
image_output = gr.Image(type="numpy", label="UMAP of UCE Embeddings")
|
153 |
file_output = gr.File(label="Download embeddings")
|
154 |
|
155 |
-
#
|
156 |
-
demo
|
157 |
fn=main,
|
158 |
inputs=[file_input, species_input],
|
159 |
-
outputs=[image_output, file_output]
|
160 |
-
title="UCE 100M Demo",
|
161 |
-
description="Upload a .h5ad single cell gene expression file, and get a UMAP scatter plot along with the UMAP coordinates in a CSV file."
|
162 |
)
|
163 |
|
164 |
demo.launch()
|
165 |
-
|
166 |
-
|
167 |
-
# if __name__ == "__main__":
|
168 |
-
|
169 |
-
# # Read the Markdown content from the .md file
|
170 |
-
# with open('description.md', 'r') as file:
|
171 |
-
# description_md = file.read()
|
172 |
-
|
173 |
-
# # Define Gradio inputs and outputs
|
174 |
-
# file_input = gr.File(label="Upload a .h5ad single cell gene expression file")
|
175 |
-
# species_input = gr.Dropdown(choices=["human", "mouse"], label="Select species")
|
176 |
-
# image_output = gr.Image(type="numpy", label="UMAP of UCE Embeddings")
|
177 |
-
# file_output = gr.File(label="Download embeddings")
|
178 |
-
|
179 |
-
# # Create the Gradio interface
|
180 |
-
# with gr.Blocks() as demo:
|
181 |
-
# gr.Markdown(description_md) # Add the Markdown section
|
182 |
-
# # Create the Gradio interface
|
183 |
-
# demo = gr.Interface(
|
184 |
-
# fn=main,
|
185 |
-
# inputs=[file_input, species_input],
|
186 |
-
# outputs=[image_output, file_output],
|
187 |
-
# title="UCE 100M Demo",
|
188 |
-
# description="Upload a .h5ad single cell gene expression file, and get a UMAP scatter plot along with the UMAP coordinates in a CSV file."
|
189 |
-
# ).launch()
|
190 |
-
|
|
|
128 |
|
129 |
if __name__ == "__main__":
|
130 |
|
131 |
+
|
132 |
css = """
|
133 |
body {background-color: black; color: white;}
|
134 |
.gradio-container {background-color: black; color: white;}
|
|
|
153 |
image_output = gr.Image(type="numpy", label="UMAP of UCE Embeddings")
|
154 |
file_output = gr.File(label="Download embeddings")
|
155 |
|
156 |
+
# Add the components to the Gradio interface
|
157 |
+
demo.Interface(
|
158 |
fn=main,
|
159 |
inputs=[file_input, species_input],
|
160 |
+
outputs=[image_output, file_output]
|
|
|
|
|
161 |
)
|
162 |
|
163 |
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|