Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -131,13 +131,20 @@ def predict(process_video):
|
|
131 |
|
132 |
|
133 |
# ---- Gradio Layout -----
|
|
|
|
|
|
|
134 |
demo = gr.Blocks()
|
135 |
demo.encrypt = False
|
136 |
-
text_output = gr.Textbox()
|
137 |
with demo:
|
138 |
-
|
139 |
-
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
141 |
with gr.Row():
|
142 |
detect_landmark_btn = gr.Button("Detect landmark")
|
143 |
detect_landmark_btn.click(preprocess_video, [video_in], [
|
|
|
131 |
|
132 |
|
133 |
# ---- Gradio Layout -----
|
134 |
+
video_in = gr.Video(label="Input Video", mirror_webcam=False, interactive=True)
|
135 |
+
video_out = gr.Video(label="Audio Visual Video", mirror_webcam=False, interactive=True)
|
136 |
+
text_output = gr.Textbox()
|
137 |
demo = gr.Blocks()
|
138 |
demo.encrypt = False
|
|
|
139 |
with demo:
|
140 |
+
examples = gr.Examples(examples=
|
141 |
+
[ ["demo1.mp4", "roi1.mp4"],
|
142 |
+
["demo2.mp4", "roi2.mp4"],
|
143 |
+
["demo3.mp4", "roi3.mp4"],],
|
144 |
+
label="Examples", inputs=[video_in, video_out])
|
145 |
+
with gr.Row():
|
146 |
+
video_in.render()
|
147 |
+
video_out.render()
|
148 |
with gr.Row():
|
149 |
detect_landmark_btn = gr.Button("Detect landmark")
|
150 |
detect_landmark_btn.click(preprocess_video, [video_in], [
|