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)
Exemple #2
0
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."
Exemple #3
0
def yourgif():
    query = request.form["gifchoice"]
    # print(query)
    image = getImageUrlFrom(query)
    return render_template("yourgif.html", image=image)
Exemple #4
0
def yourgif():
    query = request.form['gifchoice']
    gif = getImageUrlFrom(request.form['gifchoice'])
    return render_template('yourgif.html', gif=gif, query=query)
Exemple #5
0
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)