Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ with gr.Blocks() as demo:
|
|
| 45 |
btn = gr.Button("Vectorize")
|
| 46 |
html = gr.HTML("")
|
| 47 |
out_file = gr.File(label="Download SVG")
|
| 48 |
-
btn.click(None,
|
| 49 |
# on change of chains trigger, rendering
|
| 50 |
view_str.change(predict, [inp, style, view_str, chains], [html, out_file])
|
| 51 |
chains.change(predict, [inp, style, view_str, chains], [html, out_file])
|
|
|
|
| 45 |
btn = gr.Button("Vectorize")
|
| 46 |
html = gr.HTML("")
|
| 47 |
out_file = gr.File(label="Download SVG")
|
| 48 |
+
btn.click(None, style, [view_str, chains, hidden_style], js="(x) => [document.getElementById('viewMatrixResult').value, document.getElementById('chains').value], x") #
|
| 49 |
# on change of chains trigger, rendering
|
| 50 |
view_str.change(predict, [inp, style, view_str, chains], [html, out_file])
|
| 51 |
chains.change(predict, [inp, style, view_str, chains], [html, out_file])
|