Spaces:
Running
Running
Commit
·
25ab921
1
Parent(s):
bca5b0d
remove unused function
Browse files- src/pages/index.tsx +0 -11
src/pages/index.tsx
CHANGED
@@ -7,17 +7,6 @@ import { useState, useEffect } from "react";
|
|
7 |
|
8 |
const inter = Inter({ subsets: ["latin"] });
|
9 |
|
10 |
-
const fetchRandomWord = async (state: EditorState): Promise<string> => {
|
11 |
-
if (state.doc.length === 0) {
|
12 |
-
return "";
|
13 |
-
}
|
14 |
-
const res = await fetch(
|
15 |
-
`https://random-word-api.herokuapp.com/word?number=5`
|
16 |
-
);
|
17 |
-
const data = await res.json();
|
18 |
-
return data.join(" ");
|
19 |
-
};
|
20 |
-
|
21 |
export default function Home() {
|
22 |
const [engine, setEngine] = useState<webllm.MLCEngineInterface | null>(null);
|
23 |
const [isLoading, setIsLoading] = useState(false);
|
|
|
7 |
|
8 |
const inter = Inter({ subsets: ["latin"] });
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
export default function Home() {
|
11 |
const [engine, setEngine] = useState<webllm.MLCEngineInterface | null>(null);
|
12 |
const [isLoading, setIsLoading] = useState(false);
|