Upload index.html
Browse files- index.html +5 -5
index.html
CHANGED
@@ -1733,7 +1733,7 @@
|
|
1733 |
}
|
1734 |
|
1735 |
|
1736 |
-
const response = await fetch("
|
1737 |
method: "POST",
|
1738 |
headers: { "Content-Type": "application/json" },
|
1739 |
body: JSON.stringify({ api_key: apiKey, message: prompt })
|
@@ -1799,7 +1799,7 @@
|
|
1799 |
}
|
1800 |
|
1801 |
function getOutput(data) {
|
1802 |
-
return fetch("
|
1803 |
method: "POST",
|
1804 |
headers: { "Content-Type": "application/json" },
|
1805 |
body: JSON.stringify(data)
|
@@ -1821,7 +1821,7 @@
|
|
1821 |
async function repaint() {
|
1822 |
try {
|
1823 |
// 从后端获取最新数据
|
1824 |
-
const response = await fetch('
|
1825 |
method: "POST",
|
1826 |
headers: { "Content-Type": "application/json" },
|
1827 |
body: JSON.stringify({})
|
@@ -1849,7 +1849,7 @@
|
|
1849 |
}
|
1850 |
|
1851 |
try {
|
1852 |
-
const response = await fetch('
|
1853 |
method: "POST",
|
1854 |
headers: { "Content-Type": "application/json" },
|
1855 |
body: JSON.stringify(data)
|
@@ -1872,7 +1872,7 @@
|
|
1872 |
}
|
1873 |
|
1874 |
try {
|
1875 |
-
const response = await fetch('
|
1876 |
method: "POST",
|
1877 |
headers: { "Content-Type": "application/json" },
|
1878 |
body: JSON.stringify(data)
|
|
|
1733 |
}
|
1734 |
|
1735 |
|
1736 |
+
const response = await fetch("https://shen1017-citelab.hf.space/chat", {
|
1737 |
method: "POST",
|
1738 |
headers: { "Content-Type": "application/json" },
|
1739 |
body: JSON.stringify({ api_key: apiKey, message: prompt })
|
|
|
1799 |
}
|
1800 |
|
1801 |
function getOutput(data) {
|
1802 |
+
return fetch("https://shen1017-citelab.hf.space/run_pipeline", {
|
1803 |
method: "POST",
|
1804 |
headers: { "Content-Type": "application/json" },
|
1805 |
body: JSON.stringify(data)
|
|
|
1821 |
async function repaint() {
|
1822 |
try {
|
1823 |
// 从后端获取最新数据
|
1824 |
+
const response = await fetch('https://shen1017-citelab.hf.space/get_nodes', {
|
1825 |
method: "POST",
|
1826 |
headers: { "Content-Type": "application/json" },
|
1827 |
body: JSON.stringify({})
|
|
|
1849 |
}
|
1850 |
|
1851 |
try {
|
1852 |
+
const response = await fetch('https://shen1017-citelab.hf.space/get_config', {
|
1853 |
method: "POST",
|
1854 |
headers: { "Content-Type": "application/json" },
|
1855 |
body: JSON.stringify(data)
|
|
|
1872 |
}
|
1873 |
|
1874 |
try {
|
1875 |
+
const response = await fetch('https://shen1017-citelab.hf.space/update', {
|
1876 |
method: "POST",
|
1877 |
headers: { "Content-Type": "application/json" },
|
1878 |
body: JSON.stringify(data)
|