freddyaboulton HF staff commited on
Commit
3ed94d4
1 Parent(s): f6db381

Remove console log

Browse files
src/frontend/shared/FileRetrieval.svelte CHANGED
@@ -22,11 +22,7 @@
22
  async function handle_upload(file_data: FileData): Promise<void> {
23
  await tick();
24
  const upload_id = Math.random().toString(36).substring(2, 15);
25
- console.log("file to upload", file_data)
26
  uploaded_files = await upload([file_data], root, upload_id, upload_fn);
27
- // uploaded_files[0].orig_name = file_data.orig_name;
28
- // uploaded_files[0].size = file_data.size;
29
- console.log("uploaded files", uploaded_files[0])
30
  dispatch("load", uploaded_files[0]);
31
  }
32
 
@@ -107,9 +103,6 @@
107
 
108
  function isEnterPressed(event) {
109
  if (event.key === "Enter") {
110
- console.log("Enter pressed");
111
- console.log(textInput);
112
- console.log(selectedValue);
113
  fetchFromDB(textInput, selectedValue);
114
  }
115
  }
 
22
  async function handle_upload(file_data: FileData): Promise<void> {
23
  await tick();
24
  const upload_id = Math.random().toString(36).substring(2, 15);
 
25
  uploaded_files = await upload([file_data], root, upload_id, upload_fn);
 
 
 
26
  dispatch("load", uploaded_files[0]);
27
  }
28
 
 
103
 
104
  function isEnterPressed(event) {
105
  if (event.key === "Enter") {
 
 
 
106
  fetchFromDB(textInput, selectedValue);
107
  }
108
  }