Hello Himani, you can try something like this to set Desired Capabilities in Python Selenium Webdriver:
options = webdriver.ChromeOptions()
options.add_argument("--headless")
options.add_argument("--disable-gpu")
capabilities = options.to_capabilities()
driver = webdriver.Remote(\command_executor='http://127.0.0.1:40000/wd/hub', \desired_capabilities=capabilities)
driver.get('https://www.edureka.co/')