Spaces:
Runtime error
Runtime error
Besar
commited on
Commit
·
ac202df
1
Parent(s):
b961528
app.py
CHANGED
@@ -572,6 +572,18 @@ with gr.Blocks() as iface:
|
|
572 |
)
|
573 |
|
574 |
# first step: get the video information
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
extract_frames_button.click(
|
576 |
fn=get_frames_from_video,
|
577 |
inputs=[
|
|
|
572 |
)
|
573 |
|
574 |
# first step: get the video information
|
575 |
+
|
576 |
+
video_input.upload(
|
577 |
+
fn=get_frames_from_video,
|
578 |
+
inputs=[
|
579 |
+
video_input, video_state
|
580 |
+
],
|
581 |
+
outputs=[video_state, video_info, template_frame, image_selection_slider,
|
582 |
+
track_pause_number_slider,point_prompt, clear_button_click, Add_mask_button,
|
583 |
+
template_frame, tracking_video_predict_button, video_output, mask_dropdown,
|
584 |
+
remove_mask_button, inpaint_video_predict_button, run_status], api_name="api_extract_frames"
|
585 |
+
)
|
586 |
+
|
587 |
extract_frames_button.click(
|
588 |
fn=get_frames_from_video,
|
589 |
inputs=[
|
appy.py
CHANGED
@@ -4,7 +4,7 @@ client = Client("https://besarismaili-track-anything.hf.space/")
|
|
4 |
|
5 |
video_url = "https://github.com/besarismaili/track-anything/raw/main/video_001.mp4"
|
6 |
|
7 |
-
result = client.predict(video_url, api_name="
|
8 |
|
9 |
#print(client.config)
|
10 |
print(result)
|
|
|
4 |
|
5 |
video_url = "https://github.com/besarismaili/track-anything/raw/main/video_001.mp4"
|
6 |
|
7 |
+
result = client.predict(video_url, api_name="extract_frames")
|
8 |
|
9 |
#print(client.config)
|
10 |
print(result)
|