samlax12 commited on
Commit
52bc3ab
·
verified ·
1 Parent(s): 8f6edc0

Update templates/code_execution.html

Browse files
Files changed (1) hide show
  1. templates/code_execution.html +3 -3
templates/code_execution.html CHANGED
@@ -537,7 +537,7 @@
537
  stopCodeBtn.style.display = 'flex';
538
 
539
  try {
540
- const response = await fetch('https://samlax12-agent.hf.space/api/code/execute', {
541
  method: 'POST',
542
  headers: { 'Content-Type': 'application/json' },
543
  body: JSON.stringify({ code })
@@ -588,7 +588,7 @@
588
 
589
  try {
590
  // Send input to backend
591
- const response = await fetch('https://samlax12-agent.hf.space/api/code/input', {
592
  method: 'POST',
593
  headers: { 'Content-Type': 'application/json' },
594
  body: JSON.stringify({
@@ -634,7 +634,7 @@
634
 
635
  try {
636
  // Send stop request to server
637
- const response = await fetch('https://samlax12-agent.hf.space/api/code/stop', {
638
  method: 'POST',
639
  headers: { 'Content-Type': 'application/json' },
640
  body: JSON.stringify({ context_id: executionContext })
 
537
  stopCodeBtn.style.display = 'flex';
538
 
539
  try {
540
+ const response = await fetch('/api/code/execute', {
541
  method: 'POST',
542
  headers: { 'Content-Type': 'application/json' },
543
  body: JSON.stringify({ code })
 
588
 
589
  try {
590
  // Send input to backend
591
+ const response = await fetch('/api/code/input', {
592
  method: 'POST',
593
  headers: { 'Content-Type': 'application/json' },
594
  body: JSON.stringify({
 
634
 
635
  try {
636
  // Send stop request to server
637
+ const response = await fetch('/api/code/stop', {
638
  method: 'POST',
639
  headers: { 'Content-Type': 'application/json' },
640
  body: JSON.stringify({ context_id: executionContext })