hotelvoicechat / app.py
prasanth345's picture
Update app.py
0a9fa25 verified
raw
history blame
404 Bytes
from flask import Flask, render_template, request
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.html')
@app.route('/chat')
def chat():
return render_template('chat.html')
@app.post('/generate_text')
def generate_text(input_text):
response = chatbot(input_text)
return response[0]['generated_text']
if __name__ == '__main__':
app.run(debug=True)