multimodalart HF staff commited on
Commit
4cca9c8
1 Parent(s): f2e596f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -167,10 +167,10 @@ def get_creator(username):
167
  def extract_huggingface_username(username):
168
  data = get_creator(username)
169
  links = data.get('result', {}).get('data', {}).get('json', {}).get('links', [])
170
-
171
  for link in links:
172
  url = link.get('url', '')
173
- if url.startswith('https://www.huggingface.co/'):
174
  return url.split('/')[-1]
175
 
176
  return None
 
167
  def extract_huggingface_username(username):
168
  data = get_creator(username)
169
  links = data.get('result', {}).get('data', {}).get('json', {}).get('links', [])
170
+ print(links)
171
  for link in links:
172
  url = link.get('url', '')
173
+ if url.startswith('https://huggingface.co/') or url.startswith('https://www.huggingface.co/'):
174
  return url.split('/')[-1]
175
 
176
  return None