Skip to content

Commit e1a635e

Browse files
authored
Merge pull request #170 from MatthewScholefield/patch-1
Fix example on README
2 parents 0f95692 + 0288967 commit e1a635e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ from precise_runner import PreciseEngine, PreciseRunner
7575
engine = PreciseEngine('precise-engine/precise-engine', 'my_model_file.pb')
7676
runner = PreciseRunner(engine, on_activation=lambda: print('hello'))
7777
runner.start()
78+
79+
# Sleep forever
80+
from time import sleep
81+
while True:
82+
sleep(10)
7883
```
7984

8085
### Source Install
@@ -120,6 +125,11 @@ from precise_runner import PreciseEngine, PreciseRunner
120125
engine = PreciseEngine('.venv/bin/precise-engine', 'my_model_file.pb')
121126
runner = PreciseRunner(engine, on_activation=lambda: print('hello'))
122127
runner.start()
128+
129+
# Sleep forever
130+
from time import sleep
131+
while True:
132+
sleep(10)
123133
```
124134

125135
In addition to the `precise-engine` executable, doing a **Source Install** gives you

0 commit comments

Comments
 (0)