lvwerra HF staff cakiki commited on
Commit
79a7769
1 Parent(s): 1880dce

Enter key returns results (#3)

Browse files

- Enter key returns results (d26b08b78c0b75aea19060a0dbf6778dbe9f642f)


Co-authored-by: Christopher Akiki <cakiki@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ st.markdown("This tool lets you check if a repository under a given username is
24
  usernames = load_all_usernames()
25
  username = st.text_input("Your GitHub Username:")
26
 
27
- if st.button("Check!"):
28
  if username in usernames:
29
  repos = usernames[username]
30
  repo_word = "repository" if len(repos)==1 else "repositories"
 
24
  usernames = load_all_usernames()
25
  username = st.text_input("Your GitHub Username:")
26
 
27
+ if username or st.button("Check!"):
28
  if username in usernames:
29
  repos = usernames[username]
30
  repo_word = "repository" if len(repos)==1 else "repositories"