Relative Content

Tag Archive for pythonhtmlcssflask

Need help in adding a feature in my project

Problem:
I have a web application where I’m fetching related YouTube videos based on the selected emotion. Currently, clicking the “Get Related Videos” button displays videos corresponding to the selected emotion. However, I want to implement a feature where each click on the button shows different videos, even for the same emotion.

How to connect python code to htmll css buttons

The problem is that I tried to deploy my Python code using Flask. I wrote some HTML and CSS code, but the issue is that I don’t know how to activate my button. In my Python code, there are two parts: one for getting a photo from the user (inserting a photo) and another for the recognition part based on the photo provided by the user. The first button starts with “Зураг оруулна уу!” and the second button starts with “Ургамал таних.” How do I connect these two buttons with the Python code to make them work and display the result in the square-shaped section?