Skip to content

Commit a515b35

Browse files
authored
Avoid curl fails due to server startup time
Add sleep after server startup to make sure server ready prior to client request via `curl`
1 parent 4fdbe10 commit a515b35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ python3 torchchat.py server llama3.1
231231
```
232232
[skip default]: end
233233

234-
[shell default]: python3 torchchat.py server llama3.1 & server_pid=$!
234+
[shell default]: python3 torchchat.py server llama3.1 & server_pid=$! ; sleep 90 # wait for server to be ready to accept requests
235235

236236
In another terminal, query the server using `curl`. Depending on the model configuration, this query might take a few minutes to respond.
237237

0 commit comments

Comments
 (0)