Scrape from Billboard Hot 100 Artist Singles History with BeautifulSoup
I'm trying to scrape all the info on an artist's billboard page as it relates to their singles and how they performed. I'm trying to re-engineer a solution I've seen elsewhere.. It works up to a...
View ArticleYolov8 Hyperparameter tunning
I tried to improve the mAP result in my model. Can you help me in tunning the hyperparameters in yolov8How can I tune the hyperparameters in Yolov8? Is there any way to tune it with Python code in...
View ArticleHow to speed up multidimentional Longsumexp and softmax using numba
I want to calculate softmax/probability using multinomial logit while using longsumexp to avoid overflow. Using numba bring about 2-3x speedup. Can I do better here? Also when I use fastmath=True it...
View ArticleHow to find the top of a person's hair in an image using python [closed]
I am trying to build a program to create a passport photo from an image.input.png :I have been able to remove the background and find the chin as passport measurements need to be from chin to top of...
View ArticleWhy i am getting error when deploying a model from my S3 bucket to sagemaker?...
I am getting an error while deploying the model from S3 bucket using sagemaker notebook. My model that is upload on S3 is "https://huggingface.co/openchat/openchat-3.5-0106". The error:ClientError: An...
View Articlewhy is find_elements(By.CLASS_NAME) not working in selenium, python?
I'm working on a project where I scrape stories from reddit, and I've run into a problem. For each subreddit, the button you click to take you to the post includes the HTML:<a class="absolute...
View ArticleI keep getting a circular reference when using ChatGPT with LangChain
I took a couple of code samples, added a little Streamlit markup, and blew up my project. Everything processes just fine until you ask this app a question - then I get a circular reference error. Can...
View ArticleModule Not Found - when using an imported function
This is my file structureroot|- src| |-bot| | |-conf| | | |-data.py| | |-model.py |- main.pyCode for my model.pyfrom conf.data import old_datadef somemodel(new_data): old_data += new_data (more working...
View Articlehow to remove sprite image from screen using pygame.sprite.spritecollide()...
I am a beginner at pygame/python and classes but I have been following a tutorial to create a top down game (https://www.youtube.com/playlist?list=PLkkm3wcQHjT7gn81Wn-e78cAyhwBW3FIc). I have done the...
View ArticleHow to solve the image not displayed on Production using Django on Heroku
So the images are displayed on test or debug side but when I deployed into production it does not show the image , in fact it shows something else, like in the imagethe image is not fully displayed.I...
View ArticleFileNotFoundError in VSCode when using pylint extension
Recently I get the error message below when running pylint in VSCode.When I run pylint in cmd using "pylint <file/to/python/file> it works just fine.It worked very well until a few weeks ago. No...
View ArticleFlet Page Navigation
I have an app I'm making but the top navigation wont reroute to the Account Pagethis is the App bar Controls# App Bar Controlsclass Appbar(UserControl): def __init__(self, page) -> None: self.page =...
View ArticleFinding a polar decomposition of a matrix
I am trying to find the polar decomposition of a matrix.I tried studying it from a video lecture : https://www.youtube.com/watch?v=VjBEFOwHJooI tried implementing the way they have done, trusting their...
View ArticleMocking Flask's request.get_json raises "RuntimeError: Working outside of...
I develop unit tests for the backend of a large flask app. I am testing whether the helper function get_post_args() is handling empty requests correctly:from flask import requestfrom unittest.mock...
View ArticleMake the equivalent to a text request on youtube using python
I would like to make a text request using the youtube api.For example i'm looking for all the videos that are related to 'frogs' and i would like to download the 10 first videos.I already know how to...
View Articlehow to make a Schedule Timeline (just like Google Calender turned 90°) in...
i have a big problem, i really want to make a timeline were u can se what appointments you have in python but cant seem to find anything helpful so far, not even the slightest bit of information about...
View ArticleFlask: TypeError: '
In my Flask backend, I receive a dict that gets processed and added to different dicts. def updateIncomeExpenses(self, incomingUpdate):''' The list of dicts are iterated over, and dicts are added to...
View ArticleError connecting to an SSH server through a proxy in Paramiko
I'm trying to connect to a remote SSH server through a proxy using paramiko, but its failing with "Error reading SSH banner"I tried connecting using ssh command from the terminal and it worked fine, i...
View ArticleSave multiple rows from HTML table that are checked to a List?
I have an HTML table with a checkmark next to each row. I also have a button at the top that is "Get Selected". What I want to be able to do is:Select multiple rowsClick the "Get Selected" buttonCreate...
View Articlegraphene federation causing dependency issue
Trying to use Flask-GraphQL, graphene, starlette-graphene3 and graphene-federation to integrate python code with an existing graphql server. The code worked before trying to install...
View Article