Spaces:
Running
Running
Franny Dean
commited on
Commit
•
ad5199e
1
Parent(s):
238988e
forgot to round the elastance
Browse files- .ipynb_checkpoints/app-checkpoint.py +1 -1
- app.py +1 -1
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -513,7 +513,7 @@ def generate_example():
|
|
513 |
filename = val_data[1][0][n]
|
514 |
video = f"EchoNet-Dynamic/Videos/{filename}"
|
515 |
|
516 |
-
plot, Rm, Ra, Emax, Emin, Vd,Tc, start_v = pvloop_simulator(Rm=round(results[4].item(),2), Ra=round(results[5].item(),2), Emax=results[2].item(), Emin=round(results[3].item(),2), Vd=round(results[6].item(),2), Tc=round(results[0].item(),2), start_v=round(results[1].item(),2))
|
517 |
video = video.replace("avi", "mp4")
|
518 |
animated = "prediction.mp4"
|
519 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
|
|
513 |
filename = val_data[1][0][n]
|
514 |
video = f"EchoNet-Dynamic/Videos/{filename}"
|
515 |
|
516 |
+
plot, Rm, Ra, Emax, Emin, Vd,Tc, start_v = pvloop_simulator(Rm=round(results[4].item(),2), Ra=round(results[5].item(),2), Emax=round(results[2].item(),2), Emin=round(results[3].item(),2), Vd=round(results[6].item(),2), Tc=round(results[0].item(),2), start_v=round(results[1].item(),2))
|
517 |
video = video.replace("avi", "mp4")
|
518 |
animated = "prediction.mp4"
|
519 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
app.py
CHANGED
@@ -513,7 +513,7 @@ def generate_example():
|
|
513 |
filename = val_data[1][0][n]
|
514 |
video = f"EchoNet-Dynamic/Videos/{filename}"
|
515 |
|
516 |
-
plot, Rm, Ra, Emax, Emin, Vd,Tc, start_v = pvloop_simulator(Rm=round(results[4].item(),2), Ra=round(results[5].item(),2), Emax=results[2].item(), Emin=round(results[3].item(),2), Vd=round(results[6].item(),2), Tc=round(results[0].item(),2), start_v=round(results[1].item(),2))
|
517 |
video = video.replace("avi", "mp4")
|
518 |
animated = "prediction.mp4"
|
519 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
|
|
513 |
filename = val_data[1][0][n]
|
514 |
video = f"EchoNet-Dynamic/Videos/{filename}"
|
515 |
|
516 |
+
plot, Rm, Ra, Emax, Emin, Vd,Tc, start_v = pvloop_simulator(Rm=round(results[4].item(),2), Ra=round(results[5].item(),2), Emax=round(results[2].item(),2), Emin=round(results[3].item(),2), Vd=round(results[6].item(),2), Tc=round(results[0].item(),2), start_v=round(results[1].item(),2))
|
517 |
video = video.replace("avi", "mp4")
|
518 |
animated = "prediction.mp4"
|
519 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|