frances-dean commited on
Commit
d3d13a8
·
verified ·
1 Parent(s): 57f0212

risky while loop attempt at loop

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -547,8 +547,8 @@ with gr.Blocks() as demo:
547
 
548
  generate_button = gr.Button("Load sample echocardiogram and generate result")
549
  with gr.Row():
550
- video = gr.PlayableVideo(autoplay=True, every=4) #format="avi"
551
- plot = gr.PlayableVideo(autoplay=True, every=4)
552
 
553
  with gr.Row():
554
  Rm = gr.Number(label="Mitral valve circuit resistance (Rm) mmHg*s/ml:")
@@ -576,7 +576,9 @@ with gr.Blocks() as demo:
576
 
577
 
578
  generate_button.click(fn=generate_example, outputs = [video,plot,Rm,Ra,Emax,Emin,Vd,Tc,start_v])
579
-
 
 
580
 
581
  simulation_button.click(fn=pvloop_simulator_plot_only, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7], outputs = [gr.Plot()])
582
 
 
547
 
548
  generate_button = gr.Button("Load sample echocardiogram and generate result")
549
  with gr.Row():
550
+ video = gr.PlayableVideo(autoplay=True) #format="avi"
551
+ plot = gr.PlayableVideo(autoplay=True)
552
 
553
  with gr.Row():
554
  Rm = gr.Number(label="Mitral valve circuit resistance (Rm) mmHg*s/ml:")
 
576
 
577
 
578
  generate_button.click(fn=generate_example, outputs = [video,plot,Rm,Ra,Emax,Emin,Vd,Tc,start_v])
579
+
580
+ while True:
581
+ video.play()
582
 
583
  simulation_button.click(fn=pvloop_simulator_plot_only, inputs = [sl1,sl2,sl3,sl4,sl5,sl6,sl7], outputs = [gr.Plot()])
584