In the file articles.tplx in ~/.jupyter/templates folder (if the file or folder doesn't exist we can create it)
% Default to the notebook output style
((* if not cell_style is defined *))
if Rails.env.test? | |
CarrierWave.configure do |config| | |
config.storage = :file | |
config.enable_processing = false | |
end | |
else | |
CarrierWave.configure do |config| | |
config.storage = :fog | |
config.fog_credentials = { | |
:provider => 'AWS', # required |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from rembg import remove | |
from PIL import Image | |
import sys | |
def main(): | |
input_path = sys.argv[1] | |
output_path = sys.argv[2] |