2024-09-16 14:24:22 +02:00
|
|
|
from flask import Flask, request
|
2024-09-16 13:16:26 +02:00
|
|
|
|
2024-09-16 14:24:22 +02:00
|
|
|
APP = Flask(__name__)
|
2024-09-16 13:16:26 +02:00
|
|
|
|
|
|
|
|
2024-09-16 14:24:22 +02:00
|
|
|
@APP.route('/', methods=['GET', 'POST'])
|
|
|
|
def index():
|
|
|
|
if request.method == 'POST':
|
|
|
|
name = request.form['name']
|
|
|
|
option = request.form['option']
|
2024-09-16 13:16:26 +02:00
|
|
|
|
2024-09-16 14:24:22 +02:00
|
|
|
if option == "voice":
|
|
|
|
print(name)
|
|
|
|
elif option == "chat":
|
|
|
|
print(name)
|
|
|
|
|
|
|
|
return APP.send_static_file('index.html')
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
APP.run(debug=True)
|