def yourgif(): query = request.form["gifchoice"] key = app.config['Giphy_Key'] # print(query) image = getImageUrlFrom(query,key) return render_template("yourgif.html",time = datetime.now(),image =image)
def yourgif(): if request.method == "POST": choice = request.form['gifchoice'] image = getImageUrlFrom(choice, GIPHY_KEY) return render_template("yourgif.html", time=datetime.now(), image=image) else: return "bruh error."
def yourgif(): query = request.form["gifchoice"] # print(query) image = getImageUrlFrom(query) return render_template("yourgif.html", image=image)
def yourgif(): query = request.form['gifchoice'] gif = getImageUrlFrom(request.form['gifchoice']) return render_template('yourgif.html', gif=gif, query=query)
def yourgif(): query = request.form['gifchoice'] key = app.config['giphy_key'] image = getImageUrlFrom(query, key) return render_template("yourgif.html", time=datetime.now(), image=image)