mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-06 23:23:43 +00:00
Minor cleanup across multiple modules
This commit is contained in:
parent
5453b9f30e
commit
e0e20ab9e7
6 changed files with 28 additions and 82 deletions
|
|
@ -500,9 +500,8 @@ class LlamaServer:
|
|||
health_url = f"http://127.0.0.1:{self.port}/health"
|
||||
while True:
|
||||
# Check if process is still alive
|
||||
if self.process.poll() is not None:
|
||||
# Process has terminated
|
||||
exit_code = self.process.poll()
|
||||
exit_code = self.process.poll()
|
||||
if exit_code is not None:
|
||||
raise RuntimeError(f"Server process terminated unexpectedly with exit code: {exit_code}")
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue