simonduerr commited on
Commit
0d5a6e0
1 Parent(s): 4fab10d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -42,6 +42,7 @@ with gr.Blocks() as demo:
42
  out_file = gr.File(label="Download SVG")
43
  btn.click(None, [], [view_str, chains], js="() => [document.getElementById('viewMatrixResult').value, document.getElementById('chains').value]") #
44
  # on change of chains trigger, rendering
 
45
  chains.change(predict, [inp, view_str, chains], [html, out_file])
46
 
47
 
 
42
  out_file = gr.File(label="Download SVG")
43
  btn.click(None, [], [view_str, chains], js="() => [document.getElementById('viewMatrixResult').value, document.getElementById('chains').value]") #
44
  # on change of chains trigger, rendering
45
+ view_str.change(predict, [inp, view_str, chains], [html, out_file])
46
  chains.change(predict, [inp, view_str, chains], [html, out_file])
47
 
48