Browse Source

removing the option to take prompt from cli

Hamid Shojanazeri 1 year ago
parent
commit
b18a186385
1 changed files with 0 additions and 2 deletions
  1. 0 2
      inference/code-llama/code_infilling_example.py

+ 0 - 2
inference/code-llama/code_infilling_example.py

@@ -43,8 +43,6 @@ def main(
         ), f"Provided Prompt file does not exist {prompt_file}"
         with open(prompt_file, "r") as f:
             user_prompt = f.read()
-    elif not sys.stdin.isatty():
-        user_prompt = "\n".join(sys.stdin.readlines())
     else:
         print("No user prompt provided. Exiting.")
         sys.exit(1)