Spaces:
Running
Running
Update script.js
Browse files
script.js
CHANGED
@@ -9,7 +9,7 @@ document.getElementById('request-form').addEventListener('submit', async (event)
|
|
9 |
|
10 |
try {
|
11 |
// Realizar la solicitud asíncrona a la API
|
12 |
-
const response = await fetch('
|
13 |
method: 'POST',
|
14 |
headers: {
|
15 |
'Accept': 'application/json',
|
|
|
9 |
|
10 |
try {
|
11 |
// Realizar la solicitud asíncrona a la API
|
12 |
+
const response = await fetch('https://jairodanielmt-api-reqgen.hf.space/api/IA/ask', {
|
13 |
method: 'POST',
|
14 |
headers: {
|
15 |
'Accept': 'application/json',
|