simonduerr commited on
Commit
21bc870
·
verified ·
1 Parent(s): 4e760a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, 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])
 
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="(style) => [document.getElementById('viewMatrixResult').value, document.getElementById('chains').value, style]") #
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])