Pendrokar commited on
Commit
409225a
1 Parent(s): e7664e4

anchor target _blank, otherwise opens it within iframe

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -694,7 +694,7 @@ def make_link_to_space(model_name):
694
  model_basename = HF_SPACES[model_name]['name']
695
 
696
  if '/' in model_name:
697
- return '🤗 <a style="'+ style +'" title="'+ title +'" href="'+ 'https://huggingface.co/spaces/'+ model_name +'">'+ model_basename +'</a>'
698
 
699
  # otherwise just return the model name
700
  return model_name
 
694
  model_basename = HF_SPACES[model_name]['name']
695
 
696
  if '/' in model_name:
697
+ return '🤗 <a target="_blank" style="'+ style +'" title="'+ title +'" href="'+ 'https://huggingface.co/spaces/'+ model_name +'">'+ model_basename +'</a>'
698
 
699
  # otherwise just return the model name
700
  return model_name