Chakshu123's picture
Duplicate from Chakshu123/sketch-colorization-with-hint
443d045
try:
from IPython.core.magic import needs_local_scope, register_cell_magic
except ImportError:
pass
import gradio
def load_ipython_extension(ipython):
__demo = gradio.Blocks()
@register_cell_magic
@needs_local_scope
def blocks(line, cell, local_ns=None):
with __demo.clear():
exec(cell, None, local_ns)
__demo.launch(quiet=True)