frances-dean commited on
Commit
13dd6b4
1 Parent(s): 31b946e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -492,7 +492,7 @@ def generate_example():
492
  results = model(val_tensor)
493
 
494
  plot, Rm, Ra, Emax, Emin, Vd,Tc, start_v = pvloop_simulator(Rm=round(results[0][4].item(),2), Ra=round(results[0][5].item(),2), Emax=results[0][2].item(), Emin=round(results[0][3].item(),2), Vd=round(results[0][6].item(),2), Tc=round(results[0][0].item(),2), start_v=round(results[0][1].item(),2))
495
-
496
  return video, plot, Rm, Ra, Emax, Emin, Vd, Tc, start_v
497
 
498
  title = "Physics-informed self-supervised learning for predicting cardiac digital twins with echocardiography"
 
492
  results = model(val_tensor)
493
 
494
  plot, Rm, Ra, Emax, Emin, Vd,Tc, start_v = pvloop_simulator(Rm=round(results[0][4].item(),2), Ra=round(results[0][5].item(),2), Emax=results[0][2].item(), Emin=round(results[0][3].item(),2), Vd=round(results[0][6].item(),2), Tc=round(results[0][0].item(),2), start_v=round(results[0][1].item(),2))
495
+ video = video.replace("avi", "mp4")
496
  return video, plot, Rm, Ra, Emax, Emin, Vd, Tc, start_v
497
 
498
  title = "Physics-informed self-supervised learning for predicting cardiac digital twins with echocardiography"