DmitrMakeev commited on
Commit
77dd2bf
·
verified ·
1 Parent(s): ed8c51f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -52,6 +52,18 @@ def index():
52
  '''
53
  return render_template_string(html)
54
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  @app.route('/upload_form')
56
  def upload_form():
57
  html = '''
 
52
  '''
53
  return render_template_string(html)
54
 
55
+ @app.route('/chat')
56
+ def index():
57
+ return render_template('chat.html')
58
+
59
+ @socketio.on('message')
60
+ def handle_message(message):
61
+ print('Received message: ' + message)
62
+ send(message, broadcast=True)
63
+
64
+
65
+
66
+
67
  @app.route('/upload_form')
68
  def upload_form():
69
  html = '''