#app.py in the Quick Start Guide. Displaying two lines of code.

3 messages · Page 1 of 1 (latest)

swift cloud
#

I would like this code to display more than one line is there a way to do this.
Thanks
@app.route("/", methods=("GET", "POST"))
def index():
if request.method == "POST":
animal = request.form["animal"]
response = openai.Completion.create(
model="text-davinci-003",
prompt=generate_prompt(animal),
temperature=0.6,
)
return redirect(url_for("index", result=response.choices[0].text))

result = request.args.get("result")
return render_template("index.html", result=result)
lean badge
#

tell it to create a .css and a .html file combining the two later in the description class or style

swift cloud
#

thanks for the reply. Can you explain a little more please (for the newby here) thanks again!