I’m trying to understand how to create an interactive widget with Bokeh. My goal is to have the TextInput box change the x values when I press the Button. Actually i am not good at Javascript so I can’t do nothing. Also I can’t find some examples in the web. Is there anybody give me ..
Category : flask
I have the following code piece of code in the HTML: <video autoplay="true" id="videoElement"> then I have a JS script, which sends a stream via axios to the the flask python backend endpoint: <script> var video = document.querySelector("#videoElement"); if (navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({ video: true }) .then(function (stream) { video.srcObject = stream; axios.post(‘/game’, stream ) .then(function ..
I can’t get single value [in for loop(html)] but i can get the key. here is the route: @app.route("/mail/<username>/<password>/<mailext>",methods=[‘POST’,’GET’]) def mail(username,password,mailext): host= request.host mailsJsonUrl = f"http://{host}/mails/{username}/{password}/{mailext}" if request.method == "POST": reciever = request.form[‘username’] time=request.form[‘time’] title=request.form[‘title’] content=request.form[‘content’] date = request.form[‘date’] data = { ‘sender’:username, ‘time’:time, ‘title’:title, ‘content’:content, ‘date’:date } testerForStudent = db.child(f"Users/{reciever}/username").get().val() testerForTeacher = db.child(f"Users/teachers/{reciever}/username").get().val() if ..
I have deployed my first flask application, using heroku. Although it is not very elegant, I just wanted to get something finished and deployed. I have a data set, that I update using a locally run python script, which exports an .xls file. This .xls file is then the data I send to my heroku ..
First of all, I am not a python or web programmer so please be patient with me. I made a Flask web app some time ago. It has the login screen with some home screen which re-directs to a Dash app. The code example is here: demo app. All is working fine and am pretty ..
I’m not sure if anybody have tried doing this before so I’ll give it a shot. I’m trying to send sort of a html review page, which contains data from a form that’s being filled up, to main sender. Then, from there, I want to convert the html page into a pdf and then send ..
I have this management page that lists my employees from my sqlite database, but when I click Add New Employees, nothing happens, and I don’t get an error message as well… I went over Bootstrap5 documentation to make sure I didn’t misspell anything but still stuck… {% extends ‘base.html’ %} {% include ‘header.html’ %} {% ..
I deployed ML model(flask app) on Google cloud through Google SDK shell . It displayed the target url and also provided the information that deployment was successful . However, when I hit the target url in browser, it says site cannot be reached. Checked the browser settings(proxy) and everything seemed to fine. Could anybody help? ..
I’m building a movie search app in flask using imdbpy package. It is a simple app where you type movie name and it shows you movies/tv shows with that name. Everything is working fine except it takes too long to show search results (about 45 seconds). I can’t figure out how to fix it. Can ..
Is it possible to use Flask API with pyspark? I was using it in a python script earlier but now due to change in requirements, I require spark for processing thus tried using pyspark, but it ain’t working. Requirement : I’ll pass arguments via flask API to script where I’ll read data from hadoop and ..
Recent Comments