I'm trying to share a folder for anyone to access while running the code by making my local machine act as a server
PORT = 8000
DIRECTORY = "/content/sample_data"
class Handler(http.server.SimpleHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, directory=DIRECTORY, **kwargs)
with socketserver.TCPServer(("", PORT), Handler) as httpd:
print("serving at port", PORT)
httpd.serve_forever()