toasted1920 commited on
Commit
00a8bf7
Β·
1 Parent(s): ab77bdb

fix api url

Browse files
Files changed (1) hide show
  1. front_end/app.js +2 -2
front_end/app.js CHANGED
@@ -138,7 +138,7 @@ function startAnalysis() {
138
  // ─────────────────────────────────────────────
139
  async function connectToBackend(repoUrl) {
140
  try {
141
- const response = await fetch('https://toasted1920-gitread.hf.space/init-repo', {
142
  method: 'POST',
143
  headers: { 'Content-Type': 'application/json' },
144
  body: JSON.stringify({ url: repoUrl }),
@@ -417,7 +417,7 @@ async function sendMessage() {
417
  let fullMarkdown = '';
418
 
419
  try {
420
- const response = await fetch('https://toasted1920-gitread.hf.space/chat', {
421
  method: 'POST',
422
  headers: { 'Content-Type': 'application/json' },
423
  body: JSON.stringify({ message: text }),
 
138
  // ─────────────────────────────────────────────
139
  async function connectToBackend(repoUrl) {
140
  try {
141
+ const response = await fetch('/init-repo', {
142
  method: 'POST',
143
  headers: { 'Content-Type': 'application/json' },
144
  body: JSON.stringify({ url: repoUrl }),
 
417
  let fullMarkdown = '';
418
 
419
  try {
420
+ const response = await fetch('/chat', {
421
  method: 'POST',
422
  headers: { 'Content-Type': 'application/json' },
423
  body: JSON.stringify({ message: text }),