00Boobs00 commited on
Commit
e1b9a4e
·
verified ·
1 Parent(s): eae33fc

Upload pages/index.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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();