wrap in main
This commit is contained in:
parent
56b128f5c4
commit
609ca76405
|
@ -6,6 +6,7 @@ import threading
|
|||
import itertools
|
||||
import os
|
||||
import argparse
|
||||
def main():
|
||||
print("##### Init Ollama #####")
|
||||
# --- Global list to store running processes ---
|
||||
running_processes = []
|
||||
|
@ -166,3 +167,5 @@ else:
|
|||
|
||||
# Gracefully terminate running processes on script exit or error
|
||||
terminate_processes()
|
||||
if __name__ == "__main__":
|
||||
main()
|
Loading…
Reference in New Issue