Spaces:
Runtime error
Runtime error
Update app.py
Browse files12 unmodified lines1314151617181920212223242512 unmodified linesdef has_close_elements(numbers: List[float], threshold: float) -> bool:""" Check if in given list of numbers, are any two numbers closer to each other thangiven threshold.>>> has_close_elements([1.0, 2.0, 3.0], 0.5)False>>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)True""""""messages = [{"role": "user", "content": prompt}12 unmodified lines131415161718192012 unmodified linesdef has_close_elements(numbers: List[float], threshold: float) -> bool:"""messages = [{"role": "user", "content": prompt}
app.py+2-7