Omar ID EL MOUMEN commited on
Commit
9a324f3
·
1 Parent(s): 577d055

Change endpoints

Browse files
Files changed (1) hide show
  1. static/script.js +2 -2
static/script.js CHANGED
@@ -103,7 +103,7 @@ document.addEventListener('DOMContentLoaded', function() {
103
  let id_doc = btn.getAttribute("doc");
104
  popupTitle.textContent = `PDF extraction - Document no ${id_doc}`;
105
  try {
106
- const response = await fetch('https://om4r932-arxiv.hf.space/extract', {
107
  method: 'POST',
108
  headers: {
109
  'Accept': 'application/json',
@@ -140,7 +140,7 @@ document.addEventListener('DOMContentLoaded', function() {
140
  let id_doc = btn.getAttribute("doc");
141
  popupTitle.textContent = `Chapters - Document no ${id_doc}`;
142
  try {
143
- const response = await fetch('https://om4r932-arxiv.hf.space/extract', {
144
  method: 'POST',
145
  headers: {
146
  'Accept': 'application/json',
 
103
  let id_doc = btn.getAttribute("doc");
104
  popupTitle.textContent = `PDF extraction - Document no ${id_doc}`;
105
  try {
106
+ const response = await fetch('https://om4r932-arxiv.hf.space/extract_pdf/arxiv_id', {
107
  method: 'POST',
108
  headers: {
109
  'Accept': 'application/json',
 
140
  let id_doc = btn.getAttribute("doc");
141
  popupTitle.textContent = `Chapters - Document no ${id_doc}`;
142
  try {
143
+ const response = await fetch('https://om4r932-arxiv.hf.space/extract_pdf/arxiv_id', {
144
  method: 'POST',
145
  headers: {
146
  'Accept': 'application/json',