Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -408,7 +408,6 @@ css="""
|
|
| 408 |
def mm(graph,zoom):
|
| 409 |
code_out=""
|
| 410 |
for ea in graph.split("\n"):
|
| 411 |
-
ea=ea.replace("/"," ").replace(".","").replace(":"," ")
|
| 412 |
code=ea.strip().strip("\n")
|
| 413 |
code_out+=code
|
| 414 |
#out_html=f'''<div><iframe src="https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={code_out}&rand={random.randint(1,1111111111)}" height="500" width="500"></iframe></div>'''
|
|
@@ -520,7 +519,7 @@ def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=N
|
|
| 520 |
line=line.strip().replace('"',"")
|
| 521 |
if "```" in chart_list[ii]:
|
| 522 |
while True:
|
| 523 |
-
line_out+=chart_list[ii+cnti].strip().strip("\n").replace('"',"")
|
| 524 |
if not line_out.strip().endswith(";"):
|
| 525 |
line_out+=";"
|
| 526 |
line_out+="\n"
|
|
|
|
| 408 |
def mm(graph,zoom):
|
| 409 |
code_out=""
|
| 410 |
for ea in graph.split("\n"):
|
|
|
|
| 411 |
code=ea.strip().strip("\n")
|
| 412 |
code_out+=code
|
| 413 |
#out_html=f'''<div><iframe src="https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={code_out}&rand={random.randint(1,1111111111)}" height="500" width="500"></iframe></div>'''
|
|
|
|
| 519 |
line=line.strip().replace('"',"")
|
| 520 |
if "```" in chart_list[ii]:
|
| 521 |
while True:
|
| 522 |
+
line_out+=chart_list[ii+cnti].strip().strip("\n").replace('"',"").replace("/"," ").replace(".","").replace(":"," ")
|
| 523 |
if not line_out.strip().endswith(";"):
|
| 524 |
line_out+=";"
|
| 525 |
line_out+="\n"
|