Pendrokar commited on
Commit
f2b06f7
·
1 Parent(s): e37c291

submodel link fix

Browse files
Files changed (1) hide show
  1. app/models.py +3 -3
app/models.py CHANGED
@@ -729,10 +729,10 @@ def make_link_to_space(model_name, for_leaderboard=False):
729
  emoji = HF_SPACES[model_name]['emoji']
730
  except:
731
  pass
732
- return emoji +' <a target="_blank" style="'+ style +'" title="'+ title +'" href="'+ 'https://huggingface.co/spaces/'+ model_name +'">'+ model_basename +'</a>'
733
 
734
- # otherwise just return the model name
735
- return '<span style="'+ style +'" title="'+ title +'" href="'+ 'https://huggingface.co/spaces/'+ model_name +'">'+ model_name +'</span>'
736
 
737
  def markdown_link_to_space(model_name):
738
  # create a anchor link if a HF space using markdown syntax
 
729
  emoji = HF_SPACES[model_name]['emoji']
730
  except:
731
  pass
732
+ return emoji +' <a target="_blank" style="'+ style +'" title="'+ title +'" href="'+ 'https://huggingface.co/spaces/'+ AVAILABLE_MODELS[model_name] +'">'+ model_basename +'</a>'
733
 
734
+ # otherwise just return without emoji
735
+ return '<span style="'+ style +'" title="'+ title +'" href="'+ 'https://huggingface.co/spaces/'+ AVAILABLE_MODELS[model_name] +'">'+ model_name +'</span>'
736
 
737
  def markdown_link_to_space(model_name):
738
  # create a anchor link if a HF space using markdown syntax