from flask import Flask, request, render_template
import user_generated_articles


app = Flask(__name__)


@app.route('/')
def generateUserText():
    return render_template('text-form.html')


@app.route('/',methods=['POST'])
def generateUserText_post():
    prompt = request.form['text']
    print(prompt)
    response = user_generated_articles.generateText(prompt)
    return {"response":response}


if __name__ == '__main__':
    app.run()


0c62152a2d6ae29eb376b660f482e3582e18bdc3
<mask token>


@app.route('/')
def generateUserText():
    return render_template('text-form.html')


@app.route('/', methods=['POST'])
def generateUserText_post():
    prompt = request.form['text']
    print(prompt)
    response = user_generated_articles.generateText(prompt)
    return {'response': response}


<mask token>

<mask token>


@app.route('/')
def generateUserText():
    return render_template('text-form.html')


@app.route('/', methods=['POST'])
def generateUserText_post():
    prompt = request.form['text']
    print(prompt)
    response = user_generated_articles.generateText(prompt)
    return {'response': response}


if __name__ == '__main__':
    app.run()

<mask token>
app = Flask(__name__)


@app.route('/')
def generateUserText():
    return render_template('text-form.html')


@app.route('/', methods=['POST'])
def generateUserText_post():
    prompt = request.form['text']
    print(prompt)
    response = user_generated_articles.generateText(prompt)
    return {'response': response}


if __name__ == '__main__':
    app.run()

from flask import Flask, request, render_template
import user_generated_articles
app = Flask(__name__)


@app.route('/')
def generateUserText():
    return render_template('text-form.html')


@app.route('/', methods=['POST'])
def generateUserText_post():
    prompt = request.form['text']
    print(prompt)
    response = user_generated_articles.generateText(prompt)
    return {'response': response}


if __name__ == '__main__':
    app.run()

from flask import Flask, request, render_template
import user_generated_articles


app = Flask(__name__)


@app.route('/')
def generateUserText():
    return render_template('text-form.html')


@app.route('/',methods=['POST'])
def generateUserText_post():
    prompt = request.form['text']
    print(prompt)
    response = user_generated_articles.generateText(prompt)
    return {"response":response}


if __name__ == '__main__':
    app.run()

