Skip to content

Commit

Permalink
Switch to github pages to deploy, add default model and sample h5ad t…
Browse files Browse the repository at this point in the history
…o repo so that users can just click predict to get started
  • Loading branch information
rcurrie committed Dec 6, 2024
1 parent 70abe7f commit eff5161
Show file tree
Hide file tree
Showing 9 changed files with 33,722 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/venv
/data
/models
/checkpoints

.DS_Store

Expand Down
10 changes: 8 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<!-- ONNX Web WASM Runtime-->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<title>SIMS Web</title>
</head>

Expand All @@ -15,7 +15,13 @@
<div class="row">
<div class="col">
<div class="mb-3 mt-3">
<h2 class="mb-3" style="font-weight: 300">SIMS Web </h2>
<div class="d-flex justify-content-between align-items-center mb-3 mt-3">
<h2 class="mb-0" style="font-weight: 300">SIMS Web</h2>
<a href="https://github.com/braingeneers/sims-web" target="_blank"
aria-label="View source on GitHub">
<i class="bi bi-github" style="font-size: 1.5rem; color: black;"></i>
</a>
</div>
<div class="form-group mb-3">
<label for="model_select">Select a model:</label>
<select class="form-control" id="model_select">
Expand Down
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ async function main() {
return file;
}

const fileUrl = "http://localhost:3000/data/default.h5ad"; // Replace with actual file URL
const fileName = "default.h5ad"; // Replace with desired file name
const fileUrl = "http://localhost:3000/sample.h5ad"; // Replace with actual file URL
const fileName = "sample.h5ad"; // Replace with desired file name

try {
const file = await urlToFile(fileUrl, fileName);
Expand Down
8 changes: 8 additions & 0 deletions models/default.classes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Cycling
IPCs
Immature CPNs
Immature Interneurons
Immature PNs
RG
Ventral Precursors
oRG/Astroglia
Loading

0 comments on commit eff5161

Please sign in to comment.