nhanv commited on
Commit
0c7484a
1 Parent(s): 6fa28c3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +13 -1
README.md CHANGED
@@ -64,7 +64,19 @@ model = AutoModelForCausalLM.from_pretrained(
64
  )
65
  tokenizer = AutoTokenizer.from_pretrained("NTQAI/Nxcode-CQ-7B-orpo")
66
 
67
- prompt = "Write a quicksort algorithm in python"
 
 
 
 
 
 
 
 
 
 
 
 
68
  messages = [
69
  {"role": "user", "content": prompt}
70
  ]
 
64
  )
65
  tokenizer = AutoTokenizer.from_pretrained("NTQAI/Nxcode-CQ-7B-orpo")
66
 
67
+ prompt = """Complete the following Python function:
68
+ from typing import List
69
+
70
+
71
+ def has_close_elements(numbers: List[float], threshold: float) -> bool:
72
+ """ Check if in given list of numbers, are any two numbers closer to each other than
73
+ given threshold.
74
+ >>> has_close_elements([1.0, 2.0, 3.0], 0.5)
75
+ False
76
+ >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)
77
+ True
78
+ """
79
+ """
80
  messages = [
81
  {"role": "user", "content": prompt}
82
  ]