Spaces:
Running
Running
Franny Dean
commited on
Commit
•
7fb9720
1
Parent(s):
08f83a6
html test round 2
Browse files- .ipynb_checkpoints/app-checkpoint.py +12 -2
- app.py +12 -2
.ipynb_checkpoints/app-checkpoint.py
CHANGED
@@ -774,7 +774,17 @@ def generate_example():
|
|
774 |
#video = f"""<video height='500' width='500' autoplay loop muted>
|
775 |
# <source src={video_file} type='video/mp4'/>
|
776 |
# </video>"""
|
777 |
-
animated =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
@@ -858,7 +868,7 @@ with gr.Blocks() as demo:
|
|
858 |
generate_button = gr.Button("Load sample echocardiogram and generate result")
|
859 |
with gr.Row():
|
860 |
video = gr.PlayableVideo(autoplay=True) # gr.HTML() #
|
861 |
-
plot = gr.
|
862 |
|
863 |
with gr.Row():
|
864 |
Rm = gr.Number(label="Mitral valve circuit resistance (Rm) mmHg*s/ml:")
|
|
|
774 |
#video = f"""<video height='500' width='500' autoplay loop muted>
|
775 |
# <source src={video_file} type='video/mp4'/>
|
776 |
# </video>"""
|
777 |
+
animated = """<!DOCTYPE html>
|
778 |
+
<html>
|
779 |
+
<body>
|
780 |
+
<video height='500' width='500' autoplay loop muted>
|
781 |
+
<source src='prediction.mp4' type='video/mp4'/>
|
782 |
+
Your browser does not support the video tag.
|
783 |
+
</video>
|
784 |
+
<script>
|
785 |
+
# """
|
786 |
+
#"prediction.mp4"
|
787 |
+
#<video height='500' width='500' autoplay loop muted>
|
788 |
# <source src='prediction.mp4' type='video/mp4'/>
|
789 |
# </video>""" # style="width:48px;height:48px;" # "<img src='prediction.gif' alt='pv_loop'>" # "prediction.mp4"
|
790 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
|
|
868 |
generate_button = gr.Button("Load sample echocardiogram and generate result")
|
869 |
with gr.Row():
|
870 |
video = gr.PlayableVideo(autoplay=True) # gr.HTML() #
|
871 |
+
plot = gr.HTML() # gr.PlayableVideo(autoplay=True) #
|
872 |
|
873 |
with gr.Row():
|
874 |
Rm = gr.Number(label="Mitral valve circuit resistance (Rm) mmHg*s/ml:")
|
app.py
CHANGED
@@ -774,7 +774,17 @@ def generate_example():
|
|
774 |
#video = f"""<video height='500' width='500' autoplay loop muted>
|
775 |
# <source src={video_file} type='video/mp4'/>
|
776 |
# </video>"""
|
777 |
-
animated =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
@@ -858,7 +868,7 @@ with gr.Blocks() as demo:
|
|
858 |
generate_button = gr.Button("Load sample echocardiogram and generate result")
|
859 |
with gr.Row():
|
860 |
video = gr.PlayableVideo(autoplay=True) # gr.HTML() #
|
861 |
-
plot = gr.
|
862 |
|
863 |
with gr.Row():
|
864 |
Rm = gr.Number(label="Mitral valve circuit resistance (Rm) mmHg*s/ml:")
|
|
|
774 |
#video = f"""<video height='500' width='500' autoplay loop muted>
|
775 |
# <source src={video_file} type='video/mp4'/>
|
776 |
# </video>"""
|
777 |
+
animated = """<!DOCTYPE html>
|
778 |
+
<html>
|
779 |
+
<body>
|
780 |
+
<video height='500' width='500' autoplay loop muted>
|
781 |
+
<source src='prediction.mp4' type='video/mp4'/>
|
782 |
+
Your browser does not support the video tag.
|
783 |
+
</video>
|
784 |
+
<script>
|
785 |
+
# """
|
786 |
+
#"prediction.mp4"
|
787 |
+
#<video height='500' width='500' autoplay loop muted>
|
788 |
# <source src='prediction.mp4' type='video/mp4'/>
|
789 |
# </video>""" # style="width:48px;height:48px;" # "<img src='prediction.gif' alt='pv_loop'>" # "prediction.mp4"
|
790 |
return video, animated, Rm, Ra, Emax, Emin, Vd, Tc, start_v
|
|
|
868 |
generate_button = gr.Button("Load sample echocardiogram and generate result")
|
869 |
with gr.Row():
|
870 |
video = gr.PlayableVideo(autoplay=True) # gr.HTML() #
|
871 |
+
plot = gr.HTML() # gr.PlayableVideo(autoplay=True) #
|
872 |
|
873 |
with gr.Row():
|
874 |
Rm = gr.Number(label="Mitral valve circuit resistance (Rm) mmHg*s/ml:")
|