git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9
mv 6fb35afd237e42ef25f9 ConvertTo-Markdown
cd ConvertTo-Markdown
import torch | |
import torch.nn.Functional as F | |
import pytorch_lightning as pl | |
########################################################################################## | |
class FlashModel(pl.LightningModule): | |
"""DOCSTRING""" | |
def __init__(self, model): | |
super().__init__() |
########################################################################################## | |
import torch | |
import torch.nn.Functional as F | |
import pytorch_lightning as pl | |
########################################################################################## | |
class FlashModel(pl.LightningModule): | |
def __init__(self, model): | |
super().__init__() | |
self.model = model |
from IPython.display import HTML, Image
from google.colab.output import eval_js
from base64 import b64decode
# setup the canvas
canvas_html = """
<canvas width=%d height=%d></canvas>
<button>Done!</button>
<script>