fdaudens HF staff commited on
Commit
761d959
·
verified ·
1 Parent(s): 68919cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -146,7 +146,7 @@ def create_stats_html():
146
 
147
  # Create clickable links for model_id
148
  top_models['model_id'] = top_models['model_id'].apply(
149
- lambda x: f'<a href="https://huggingface.co/{x}" target="_blank">{x}</a>'
150
  )
151
  else:
152
  top_models = pd.DataFrame(columns=['model_id', 'model_type', 'downloads_30d', 'likes'])
 
146
 
147
  # Create clickable links for model_id
148
  top_models['model_id'] = top_models['model_id'].apply(
149
+ lambda x: f'<a href="https://huggingface.co/{x}" target="_blank" onclick="window.open(\'https://huggingface.co/{x}\', \'_blank\')">{x}</a>'
150
  )
151
  else:
152
  top_models = pd.DataFrame(columns=['model_id', 'model_type', 'downloads_30d', 'likes'])