Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,13 @@ js_c=("""
|
|
22 |
""")
|
23 |
def call_chart():
|
24 |
# Render the flowchart
|
25 |
-
context.call("renderMermaid", mermaid_code)
|
26 |
# Print the Mermaid code for reference
|
27 |
print(mermaid_code)
|
28 |
|
29 |
with gr.Blocks() as app:
|
|
|
|
|
30 |
gr.HTML("""<div id='diagram'></div>""")
|
31 |
-
app.load(
|
32 |
app.launch()
|
|
|
22 |
""")
|
23 |
def call_chart():
|
24 |
# Render the flowchart
|
25 |
+
#context.call("renderMermaid", mermaid_code)
|
26 |
# Print the Mermaid code for reference
|
27 |
print(mermaid_code)
|
28 |
|
29 |
with gr.Blocks() as app:
|
30 |
+
inp_text=gr.Textbox(value=mermaid_code)
|
31 |
+
|
32 |
gr.HTML("""<div id='diagram'></div>""")
|
33 |
+
app.load(None,inp_text,None,js=js_c)
|
34 |
app.launch()
|