update css
Browse files
app.py
CHANGED
@@ -128,7 +128,6 @@ def main(input_file_path, species):
|
|
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,11 +152,11 @@ if __name__ == "__main__":
|
|
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
|
157 |
-
|
158 |
-
fn=main,
|
159 |
-
inputs=[file_input, species_input],
|
160 |
outputs=[image_output, file_output]
|
161 |
)
|
162 |
|
163 |
-
|
|
|
128 |
|
129 |
if __name__ == "__main__":
|
130 |
|
|
|
131 |
css = """
|
132 |
body {background-color: black; color: white;}
|
133 |
.gradio-container {background-color: black; color: white;}
|
|
|
152 |
image_output = gr.Image(type="numpy", label="UMAP of UCE Embeddings")
|
153 |
file_output = gr.File(label="Download embeddings")
|
154 |
|
155 |
+
# Add the components and link to the function
|
156 |
+
gr.Button("Run").click(
|
157 |
+
fn=main,
|
158 |
+
inputs=[file_input, species_input],
|
159 |
outputs=[image_output, file_output]
|
160 |
)
|
161 |
|
162 |
+
demo.launch()
|