Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -417,8 +417,8 @@ def mm(graph,zoom):
|
|
417 |
code=ea.strip().strip("\n")
|
418 |
code_out+=code
|
419 |
#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>'''
|
420 |
-
out_html=f'''<div id="wrap"><iframe id="frame" src="https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={code_out}" style="width: 100%; border: 1px solid black; zoom: {str(zoom)}; -moz-transform: scale({str(zoom)}); -moz-transform-origin: 0 0;"></iframe></div>'''
|
421 |
-
return
|
422 |
|
423 |
def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=None,pdf_batch=None):
|
424 |
json_box=[]
|
|
|
417 |
code=ea.strip().strip("\n")
|
418 |
code_out+=code
|
419 |
#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>'''
|
420 |
+
out_html=f'''<div id="wrap" style="width: 100%; height: 100%; padding: 0; overflow: auto;"><iframe id="frame" src="https://omnibus-mermaid-script.static.hf.space/index.html?mermaid={code_out}" style="width: 100%; border: 1px solid black; zoom: {str(zoom)}; -moz-transform: scale({str(zoom)}); -moz-transform-origin: 0 0;"></iframe></div>'''
|
421 |
+
return out_html
|
422 |
|
423 |
def summarize(inp,history,data=None,files=None,directory=None,url=None,pdf_url=None,pdf_batch=None):
|
424 |
json_box=[]
|