Upload pages/index.js with huggingface_hub
Browse files- pages/index.js +1 -0
pages/index.js
CHANGED
|
@@ -17,6 +17,7 @@ export default function Home() {
|
|
| 17 |
const fetchLoras = async () => {
|
| 18 |
try {
|
| 19 |
setLoading(true);
|
|
|
|
| 20 |
const response = await fetch('/api/loras');
|
| 21 |
if (!response.ok) throw new Error('Failed to fetch models');
|
| 22 |
const data = await response.json();
|
|
|
|
| 17 |
const fetchLoras = async () => {
|
| 18 |
try {
|
| 19 |
setLoading(true);
|
| 20 |
+
setError(null);
|
| 21 |
const response = await fetch('/api/loras');
|
| 22 |
if (!response.ok) throw new Error('Failed to fetch models');
|
| 23 |
const data = await response.json();
|