Franny Dean commited on
Commit
63b4c8a
·
1 Parent(s): 281bb81

still not working

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +4 -2
  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 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
 
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>
775
+ <source src={video_file} type='video/mp4'/>
776
+ </video>"""
777
+ animated = """<video height='500' width='500' autoplay loop muted>
778
  <source src='prediction.mp4' type='video/mp4'/>
779
  </video>""" # style="width:48px;height:48px;" # "<img src='prediction.gif' alt='pv_loop'>" # "prediction.mp4"
780
  return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
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 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
 
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>
775
+ <source src={video_file} type='video/mp4'/>
776
+ </video>"""
777
+ animated = """<video height='500' width='500' autoplay loop muted>
778
  <source src='prediction.mp4' type='video/mp4'/>
779
  </video>""" # style="width:48px;height:48px;" # "<img src='prediction.gif' alt='pv_loop'>" # "prediction.mp4"
780
  return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v