21 lines
No EOL
430 B
Python
21 lines
No EOL
430 B
Python
from flask import Flask, request
|
|
|
|
APP = Flask(__name__)
|
|
|
|
|
|
@APP.route('/', methods=['GET', 'POST'])
|
|
def index():
|
|
if request.method == 'POST':
|
|
name = request.form['name']
|
|
option = request.form['option']
|
|
|
|
if option == "voice":
|
|
print(name)
|
|
elif option == "chat":
|
|
print(name)
|
|
|
|
return APP.send_static_file('index.html')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
APP.run(debug=True) |