from selenium import webdriver from selenium.common.exceptions import WebDriverException from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By import urllib #from selenium_webdriver import WebElement import uuid driver_type = 'chromedriver' driver=False def create_ss(graph,width=1000,height=8000): uid=uuid.uuid4() code_out="" for ea in graph.split("\n"): code=ea.strip().strip("\n") code_out+=code url=f"https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={urllib.parse.quote_plus(code_out)}" is_url=True wait_time=10000 if is_url: options = webdriver.ChromeOptions() options.add_argument('--headless') options.add_argument('--no-sandbox') options.add_argument('--disable-dev-shm-usage') mes='