Marthee commited on
Commit
15099f2
·
verified ·
1 Parent(s): 34ac14c

Update templates/gui.html

Browse files
Files changed (1) hide show
  1. templates/gui.html +2 -2
templates/gui.html CHANGED
@@ -18,7 +18,7 @@ function getURLParams() {
18
  const params = new URLSearchParams(window.location.search);
19
  const pdfLink = params.get("pdfLink");
20
 
21
- if (dropboxLink) {
22
  const pdfLink = decodeURIComponent(pdfLink);
23
  console.log("Decoded Dropbox Link:", pdfLink);
24
  }
@@ -43,7 +43,7 @@ function processPdf() {
43
  keyword='mysetkeywrod'
44
  // Create a new FormData object to send the data as form data
45
  const formData = new FormData();
46
- formData.append('pdf_link', pdfLink);
47
  formData.append('keyword', keyword); // Single keyword from URL
48
 
49
  // Send the data to the Flask server
 
18
  const params = new URLSearchParams(window.location.search);
19
  const pdfLink = params.get("pdfLink");
20
 
21
+ if (pdfLink) {
22
  const pdfLink = decodeURIComponent(pdfLink);
23
  console.log("Decoded Dropbox Link:", pdfLink);
24
  }
 
43
  keyword='mysetkeywrod'
44
  // Create a new FormData object to send the data as form data
45
  const formData = new FormData();
46
+ formData.append('pdfLink', pdfLink);
47
  formData.append('keyword', keyword); // Single keyword from URL
48
 
49
  // Send the data to the Flask server