gradio-pr-bot commited on
Commit
443762f
·
verified ·
1 Parent(s): 63e38b3

Upload folder using huggingface_hub

Browse files
6.4.0/video/shared/InteractiveVideo.svelte CHANGED
@@ -51,7 +51,7 @@
51
  stop_recording?: never;
52
  }>();
53
 
54
- function handle_load({ detail }: CustomEvent<FileData | null>): void {
55
  value = detail;
56
  dispatch("change", detail);
57
  dispatch("upload", detail!);
@@ -88,9 +88,9 @@
88
  bind:dragging
89
  bind:uploading
90
  filetype="video/x-m4v,video/*"
91
- on:load={handle_load}
92
  {max_file_size}
93
- on:error={({ detail }) => dispatch("error", detail)}
94
  {root}
95
  {upload}
96
  {stream_handler}
 
51
  stop_recording?: never;
52
  }>();
53
 
54
+ function handle_load(detail: FileData | null): void {
55
  value = detail;
56
  dispatch("change", detail);
57
  dispatch("upload", detail!);
 
88
  bind:dragging
89
  bind:uploading
90
  filetype="video/x-m4v,video/*"
91
+ onload={handle_load}
92
  {max_file_size}
93
+ onerror={(detail) => dispatch("error", detail)}
94
  {root}
95
  {upload}
96
  {stream_handler}
6.4.0/video/shared/VideoControls.svelte CHANGED
@@ -98,7 +98,7 @@
98
 
99
  <ModifyUpload
100
  {i18n}
101
- on:clear={() => handle_clear()}
102
  download={show_download_button ? value?.url : null}
103
  >
104
  {#if showRedo && mode === ""}
@@ -106,7 +106,7 @@
106
  Icon={Undo}
107
  label="Reset video to initial value"
108
  disabled={processingVideo || !has_change_history}
109
- on:click={() => {
110
  handle_reset_value();
111
  mode = "";
112
  }}
@@ -118,7 +118,7 @@
118
  Icon={Trim}
119
  label="Trim video to selection"
120
  disabled={processingVideo}
121
- on:click={toggleTrimmingMode}
122
  />
123
  {/if}
124
  </ModifyUpload>
 
98
 
99
  <ModifyUpload
100
  {i18n}
101
+ onclear={() => handle_clear()}
102
  download={show_download_button ? value?.url : null}
103
  >
104
  {#if showRedo && mode === ""}
 
106
  Icon={Undo}
107
  label="Reset video to initial value"
108
  disabled={processingVideo || !has_change_history}
109
+ onclick={() => {
110
  handle_reset_value();
111
  mode = "";
112
  }}
 
118
  Icon={Trim}
119
  label="Trim video to selection"
120
  disabled={processingVideo}
121
+ onclick={toggleTrimmingMode}
122
  />
123
  {/if}
124
  </ModifyUpload>