Skip to content

Instantly share code, notes, and snippets.

View 1UC1F3R616's full-sized avatar
:shipit:
Attention is All You Need

Kush Choudhary 1UC1F3R616

:shipit:
Attention is All You Need
View GitHub Profile

Read Write and Destory

import cv2
import numpy as np

def debug(x):
    print('\n\n{}\n\n'.format(str(x)))

image = 'images/image2.jpg'

To stop CORS

socketio = SocketIO(app, cors_allowed_origins='*')

sending json from client to server on a particular namespace

@socketio.on('attendence_request', namespace='/attendence_namespace')
def take_attendence_from_user(json):
    print('\n\n\n\n\nUSER MESSAGE: {}'.format(str(json)))