-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sweep: strip username before login and add a unit test within test_post_login
#5056
Comments
That seems reasonable to me @leolaf -- would you like to open a PR for this? |
Here's the PR! #5098.⚡ Sweep Free Trial: I used GPT-4 to create this ticket. You have 1 GPT-4 tickets left. For more GPT-4 tickets, visit our payment portal.To get Sweep to recreate this ticket, leave a comment prefixed with "sweep:" or edit the issue. Step 1: 🔍 Code SearchI found the following snippets in your repository. I will now analyze these snippets and come up with a plan. Some code snippets I looked at (click to expand). If some file is missing from here, you can mention the path in the ticket description.Lines 1 to 830 in 37caa2e
Lines 480 to 640 in 37caa2e
gradio/demo/hello_login/run.py Lines 1 to 14 in 37caa2e
gradio/test/test_interfaces.py Lines 1 to 67 in 37caa2e
gradio/demo/blocks_hello/run.py Lines 1 to 16 in 37caa2e
Summaries of links found in the content:Step 2: 🧐 Snippet AnalysisFrom looking through the relevant snippets, I decided to make the following modifications:
Step 3: 📝 PlanningI have created a plan for writing the pull request. I am now working my plan and coding the required changes to address this issue. Here is the planned pull request: Strip username before login and add unit test within
Step 4: ⌨️ CodingI have finished coding the issue. I am now reviewing it for completeness. Step 5: 🔁 Code ReviewSuccess! 🚀 To recreate the pull request, leave a comment prefixed with "sweep:" or edit the issue. |
test_post_login
@abidlabs I'm going to create a separate issue, we currently read all of the non-bot issue comments so this may be noisy. Thanks for trying Sweep! |
https://github.com/gradio-app/gradio/pull/5104/files Here's the PR! |
Closed by #5104 |
It seems that spaces are kept at the beginning and at the end of the username's Textbox on login page.
It is more of a user-end problem when happening but since most sites work like this I thought it would be great to implement it in gradio.
Would it be possible to strip the username in the login route in the script
gradio/routes.py
?Sorry if it is not considered a feature request, but i didn't knew if this behavior was a bug or on purpose.
Thank you !
The text was updated successfully, but these errors were encountered: