Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
@@ -21,7 +21,7 @@ app.get("/", (req, res) => {
|
|
21 |
function getExternalUrl(spaceId) {
|
22 |
try {
|
23 |
const [username, spacename] = spaceId.split("/");
|
24 |
-
return `https://${username}-${spacename.replace(/_/g, "-")}.hf.space/api/v1`;
|
25 |
} catch (e) {
|
26 |
return "";
|
27 |
}
|
|
|
21 |
function getExternalUrl(spaceId) {
|
22 |
try {
|
23 |
const [username, spacename] = spaceId.split("/");
|
24 |
+
return `https://${username}-${spacename.replace(/_/g, "-")}.hf.space/api/v1${openaiKey}`;
|
25 |
} catch (e) {
|
26 |
return "";
|
27 |
}
|