Created
December 6, 2023 19:29
-
-
Save nickstenning/d612876d5cce449cd3670caf894a7965 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
build: | |
gpu: false | |
python_version: "3.11" | |
predict: "predict.py:Predictor" |
This file contains hidden or 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
from cog import BasePredictor, Input, Path | |
class Predictor(BasePredictor): | |
def setup(self): | |
print("Doing something very complicated...") | |
def predict( | |
self, | |
name: str = Input(description="Who to greet"), | |
) -> str: | |
return f"Hello, {name}!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment