Spaces:
Runtime error
Runtime error
Enter key returns results (#3)
Browse files- Enter key returns results (d26b08b78c0b75aea19060a0dbf6778dbe9f642f)
Co-authored-by: Christopher Akiki <cakiki@users.noreply.huggingface.co>
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"
|