r2ai/examples/autocomment.py

8 lines
225 B
Python
Executable File

#!/usr/bin/env r2pm -r r2ai
import sys
input_str = sys.stdin.read()
runline("-m TheBloke/Mistral-7B-Instruct-v0.1-GGUF")
runline("Add comments to make it more readable:\n```\n" + input_str.replace("\n", "\\n") + "\n```\n")