Spaces:
Runtime error
Runtime error
Update frontend/src/App.tsx
Browse files- frontend/src/App.tsx +2 -3
frontend/src/App.tsx
CHANGED
|
@@ -4,7 +4,7 @@ import { ChainlitAPI, sessionState, useChatSession } from "@chainlit/react-clien
|
|
| 4 |
import { Playground } from "./components/playground";
|
| 5 |
import { useRecoilValue } from "recoil";
|
| 6 |
|
| 7 |
-
const CHAINLIT_SERVER = "
|
| 8 |
const userEnv = {};
|
| 9 |
|
| 10 |
const apiClient = new ChainlitAPI(CHAINLIT_SERVER);
|
|
@@ -17,8 +17,7 @@ function App() {
|
|
| 17 |
if (session?.socket.connected) {
|
| 18 |
return
|
| 19 |
}
|
| 20 |
-
fetch(
|
| 21 |
-
.buildEndpoint("/custom-auth")).then((res) => {
|
| 22 |
return res.json();
|
| 23 |
}
|
| 24 |
).then((data) => {
|
|
|
|
| 4 |
import { Playground } from "./components/playground";
|
| 5 |
import { useRecoilValue } from "recoil";
|
| 6 |
|
| 7 |
+
const CHAINLIT_SERVER = "https://bentebbutt-chainlit-single-container.hf.space";
|
| 8 |
const userEnv = {};
|
| 9 |
|
| 10 |
const apiClient = new ChainlitAPI(CHAINLIT_SERVER);
|
|
|
|
| 17 |
if (session?.socket.connected) {
|
| 18 |
return
|
| 19 |
}
|
| 20 |
+
fetch(("/custom-auth")).then((res) => {
|
|
|
|
| 21 |
return res.json();
|
| 22 |
}
|
| 23 |
).then((data) => {
|