LongK171 commited on
Commit
c810fbf
·
1 Parent(s): ef97a16
Files changed (1) hide show
  1. Demo/Assets/script.js +4 -5
Demo/Assets/script.js CHANGED
@@ -121,13 +121,12 @@ document.addEventListener("DOMContentLoaded", () => {
121
  const typing = appendTyping();
122
  const formData = new FormData();
123
  formData.append("file", file);
124
- const endpointer = "http://127.0.0.1:8000";
125
- // const endpointer = window.location.hostname.includes("hf.space")
126
- // ? "https://orias171-doc-ai-api.hf.space"
127
- // : "http://127.0.0.1:8000";
128
 
129
  try {
130
- const response = await fetch(`${endpointer}/process_pdf`, {
131
  method: "POST",
132
  body: formData
133
  });
 
121
  const typing = appendTyping();
122
  const formData = new FormData();
123
  formData.append("file", file);
124
+
125
+ const endpointer = "https://orias171-doc-ai-api.hf.space/process_pdf";
126
+ // const endpointer = "http://127.0.0.1:8000/process_pdf";
 
127
 
128
  try {
129
+ const response = await fetch(`${endpointer}`, {
130
  method: "POST",
131
  body: formData
132
  });