ParthSadaria commited on
Commit
9a7ae1b
·
verified ·
1 Parent(s): c680e80

Update playground.html

Browse files
Files changed (1) hide show
  1. playground.html +1 -1
playground.html CHANGED
@@ -767,7 +767,7 @@ code.unblur-token:not(pre code) {
767
  const res = await fetch('https://parthsadaria-lokiai.hf.space/models');
768
  if (!res.ok) return console.error('❌ Failed to load models');
769
 
770
- const models = await res.json();
771
  const providers = {};
772
 
773
  models?.forEach(m => {
 
767
  const res = await fetch('https://parthsadaria-lokiai.hf.space/models');
768
  if (!res.ok) return console.error('❌ Failed to load models');
769
 
770
+ const models = (await res.json()).data || [];
771
  const providers = {};
772
 
773
  models?.forEach(m => {