Spaces:
Runtime error
Runtime error
Download app.py from czqi/hello_workcell: direct link, hf CLI and curl.
- Browser
- Download file 311 Bytes
-
https://huggingface.co/spaces/czqi/hello_workcell/resolve/main/app.py
- Command line
-
hf download hf://spaces/czqi/hello_workcell/app.py
-
curl -L -o app.py https://huggingface.co/spaces/czqi/hello_workcell/resolve/main/app.py
311 Bytes
| from pydantic import BaseModel | |
| import workcell | |
| class Input(BaseModel): | |
| message: str | |
| class Output(BaseModel): | |
| message: str | |
| def hello_workcell(input: Input) -> Output: | |
| """Returns the `message` of the input data.""" | |
| return Output(message=input.message) | |
| app = workcell.create_app(hello_workcell) |