simonduerr commited on
Commit
601a92d
·
verified ·
1 Parent(s): 1013f57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -343,7 +343,7 @@ def predict(input_mol, style, contour_level, view_str, chains):
343
  print(os.stat("outline_all.svg").st_size / (1024 * 1024))
344
 
345
 
346
- return html_output("outline_all.svg"), "pdb_opt.svg"
347
 
348
 
349
 
@@ -368,10 +368,9 @@ with gr.Blocks() as demo:
368
 
369
  btn = gr.Button("Vectorize")
370
  html = gr.HTML("")
371
- out_file = gr.File(label="Download SVG")
372
  btn.click(None, style, [view_str, chains, hidden_style, timestamp], js="(style) => [document.getElementById('viewMatrixResult').value, document.getElementById('chains').value, style, Date.now()]") #
373
 
374
- timestamp.change(predict, [inp, style, contour_level, view_str, chains], [html, out_file])
375
  # on change of chains trigger, rendering
376
 
377
 
 
343
  print(os.stat("outline_all.svg").st_size / (1024 * 1024))
344
 
345
 
346
+ return html_output("outline_all.svg")
347
 
348
 
349
 
 
368
 
369
  btn = gr.Button("Vectorize")
370
  html = gr.HTML("")
 
371
  btn.click(None, style, [view_str, chains, hidden_style, timestamp], js="(style) => [document.getElementById('viewMatrixResult').value, document.getElementById('chains').value, style, Date.now()]") #
372
 
373
+ timestamp.change(predict, [inp, style, contour_level, view_str, chains], [html])
374
  # on change of chains trigger, rendering
375
 
376