import requests API_URL = "http://127.0.0.1:8000/" # def get_response(end_point): response = requests.get(f"{API_URL}/{end_point}") return response.json()