-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
128 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from hypha_rpc import api | ||
|
||
class CellposeModel: | ||
def __init__(self): | ||
# Load model | ||
pass | ||
|
||
def predict(self, image: str) -> str: | ||
prediction = "prediction of cellpose model on image" + image | ||
return prediction | ||
|
||
def train(self, data: str, config: str) -> str: | ||
training = "training cellpose model on data" + data + "with config" + config | ||
return training | ||
|
||
|
||
api.export(CellposeModel) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Cellpose | ||
id: cellpose | ||
description: Cellpose is a generalist algorithm for cell and nucleus segmentation | ||
runtime: ray | ||
entrypoint: __init__.py | ||
ray_serve_config: | ||
ray_actor_options: | ||
runtime_env: | ||
pip: | ||
- numpy | ||
- torch | ||
autoscaling_config: | ||
min_replicas: 0 | ||
max_replicas: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Translator | ||
id: translator | ||
description: A simple translator that translates text from English to French | ||
runtime: ray | ||
entrypoint: translator.py | ||
ray_serve_config: | ||
ray_actor_options: | ||
runtime_env: | ||
pip: | ||
- transformers | ||
autoscaling_config: | ||
min_replicas: 0 | ||
max_replicas: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters