gradio-pr-bot commited on
Commit
27dee41
·
verified ·
1 Parent(s): e47e005

Upload folder using huggingface_hub

Browse files
6.0.1/image/package.json CHANGED
@@ -53,4 +53,4 @@
53
  "url": "git+https://github.com/gradio-app/gradio.git",
54
  "directory": "js/image"
55
  }
56
- }
 
53
  "url": "git+https://github.com/gradio-app/gradio.git",
54
  "directory": "js/image"
55
  }
56
+ }
6.0.1/image/shared/ImageUploader.svelte CHANGED
@@ -82,7 +82,6 @@
82
  img_blob: Blob | any,
83
  event: "change" | "stream" | "upload"
84
  ): Promise<void> {
85
- console.log("handle_save", { event, img_blob });
86
  if (event === "stream") {
87
  dispatch("stream", {
88
  value: { url: img_blob } as Base64File,
@@ -104,7 +103,6 @@
104
  ];
105
  pending = true;
106
  const f = await upload_input.load_files([f_], upload_id);
107
- console.log("uploaded file", f);
108
  if (event === "change" || event === "upload") {
109
  value = f?.[0] || null;
110
  await tick();
 
82
  img_blob: Blob | any,
83
  event: "change" | "stream" | "upload"
84
  ): Promise<void> {
 
85
  if (event === "stream") {
86
  dispatch("stream", {
87
  value: { url: img_blob } as Base64File,
 
103
  ];
104
  pending = true;
105
  const f = await upload_input.load_files([f_], upload_id);
 
106
  if (event === "change" || event === "upload") {
107
  value = f?.[0] || null;
108
  await tick();
6.0.1/image/shared/Webcam.svelte CHANGED
@@ -118,7 +118,6 @@
118
  video_source.videoWidth &&
119
  video_source.videoHeight
120
  ) {
121
- console.log("Taking picture from webcam");
122
  var context = canvas.getContext("2d")!;
123
  canvas.width = video_source.videoWidth;
124
  canvas.height = video_source.videoHeight;
 
118
  video_source.videoWidth &&
119
  video_source.videoHeight
120
  ) {
 
121
  var context = canvas.getContext("2d")!;
122
  canvas.width = video_source.videoWidth;
123
  canvas.height = video_source.videoHeight;