Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Jan 22, 2021
1 parent a3bd422 commit 5e8d967
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,23 @@ f = (Flow().add(name='p1', needs='gateway')
A Flow does not have to be local-only, one can put any Pod to remote(s). In the example below, with the `host` keyword `gpu-pod` is put to a remote machine for parallelization, whereas other pods stay local. Extra file dependencies that need to be uploaded are specified via the `upload_files` keyword.

<table>
<tr>
<td>123.456.78.9</td>
<td>

```bash
# have docker installed

docker run --network=host jinaai/jina:latest-daemon --port-expose 8000
```

</td>
</tr>
<tr>
<td width="50%">
<td>
Local
</td>
<td width="50%">
123.456.78.9
</td>
</tr>
<tr>
<td width="50%">
<td>

```python
import numpy as np
Expand All @@ -303,17 +310,8 @@ f = (Flow()
with f:
f.index_ndarray(np.random.random([10, 100]), output=print)
```

</pre>
</td>
<td width="50%">

```bash
docker run --network=host jinaai/jina:latest-daemon --port-expose 8000
```

</td>
</tr>

</table>

We provide a demo server on `cloud.jina.ai:8000`, give the following snippet a try!
Expand Down

0 comments on commit 5e8d967

Please sign in to comment.