Omnibus commited on
Commit
36d0d44
1 Parent(s): ade7b77

Update screenshot.py

Browse files
Files changed (1) hide show
  1. screenshot.py +2 -1
screenshot.py CHANGED
@@ -2,6 +2,7 @@ from selenium import webdriver
2
  from selenium.common.exceptions import WebDriverException
3
  from selenium.webdriver.common.keys import Keys
4
  from selenium.webdriver.common.by import By
 
5
  #from selenium_webdriver import WebElement
6
  import uuid
7
 
@@ -14,7 +15,7 @@ def create_ss(graph,width=1000,height=8000):
14
  for ea in graph.split("\n"):
15
  code=ea.strip().strip("\n")
16
  code_out+=code
17
- url=f"https://omnibus-text-to-chart.hf.space/file=merm.html?mermaid={code_out}"
18
  is_url=True
19
  wait_time=10000
20
  if is_url:
 
2
  from selenium.common.exceptions import WebDriverException
3
  from selenium.webdriver.common.keys import Keys
4
  from selenium.webdriver.common.by import By
5
+ import urllib
6
  #from selenium_webdriver import WebElement
7
  import uuid
8
 
 
15
  for ea in graph.split("\n"):
16
  code=ea.strip().strip("\n")
17
  code_out+=code
18
+ url=f"https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={urllib.parse.quote_plus(code_out)}"
19
  is_url=True
20
  wait_time=10000
21
  if is_url: