Spaces:
Sleeping
Sleeping
Franny Dean
commited on
Commit
·
281bb81
1
Parent(s):
c6c7d4e
attempts to fix html
Browse files- .ipynb_checkpoints/app-checkpoint.py +4 -2
- app.py +4 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -771,8 +771,10 @@ def generate_example():
|
|
771 |
|
772 |
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))
|
773 |
video_file = video.replace("avi", "mp4")
|
774 |
-
video = f"<video autoplay loop muted> <source src={video_file} type='video/mp4'/> </video>"
|
775 |
-
animated = "<video autoplay loop muted>
|
|
|
|
|
776 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
777 |
|
778 |
|
|
|
771 |
|
772 |
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))
|
773 |
video_file = video.replace("avi", "mp4")
|
774 |
+
video = f"<video height='500' width='500' autoplay loop muted> <source src={video_file} type='video/mp4'/> </video>"
|
775 |
+
animated = """<video autoplay loop muted>
|
776 |
+
<source src='prediction.mp4' type='video/mp4'/>
|
777 |
+
</video>""" # style="width:48px;height:48px;" # "<img src='prediction.gif' alt='pv_loop'>" # "prediction.mp4"
|
778 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
779 |
|
780 |
|
app.py
CHANGED
@@ -771,8 +771,10 @@ def generate_example():
|
|
771 |
|
772 |
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))
|
773 |
video_file = video.replace("avi", "mp4")
|
774 |
-
video = f"<video autoplay loop muted> <source src={video_file} type='video/mp4'/> </video>"
|
775 |
-
animated = "<video autoplay loop muted>
|
|
|
|
|
776 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
777 |
|
778 |
|
|
|
771 |
|
772 |
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))
|
773 |
video_file = video.replace("avi", "mp4")
|
774 |
+
video = f"<video height='500' width='500' autoplay loop muted> <source src={video_file} type='video/mp4'/> </video>"
|
775 |
+
animated = """<video autoplay loop muted>
|
776 |
+
<source src='prediction.mp4' type='video/mp4'/>
|
777 |
+
</video>""" # style="width:48px;height:48px;" # "<img src='prediction.gif' alt='pv_loop'>" # "prediction.mp4"
|
778 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
779 |
|
780 |
|