# Streamlit

## Service

The following command runs `http.server` as a service:

```shell
dstack apply -f examples/misc/http.server/.dstack.yml
```

See the configuration at [.dstack.yml](.dstack.yml).

## Task

The following command runs `http.server` as a task:

```shell
dstack apply -f examples/misc/http.server/task.dstack.yml
```

See the configuration at [task.dstack.yml](task.dstack.yml).

For more details, refer to [services](https://dstack.ai/docs/services) or [tasks](https://dstack.ai/docs/tasks).
