TanmayTomar commited on
Commit
f9ca61d
·
verified ·
1 Parent(s): 63f1125

Update frontend_by_gemini/script.js

Browse files
Files changed (1) hide show
  1. frontend_by_gemini/script.js +1 -1
frontend_by_gemini/script.js CHANGED
@@ -49,7 +49,7 @@ document.addEventListener('DOMContentLoaded', () => {
49
 
50
  try {
51
  // FIXED: Use the full, absolute URL for the API endpoint
52
- const response = await fetch('http://127.0.0.1:7860/analyze', {
53
  method: 'POST',
54
  body: formData
55
  });
 
49
 
50
  try {
51
  // FIXED: Use the full, absolute URL for the API endpoint
52
+ const response = await fetch('/analyze', {
53
  method: 'POST',
54
  body: formData
55
  });