Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,6 @@
|
|
| 1 |
import fastai
|
| 2 |
from fastai.vision.all import*
|
| 3 |
import gradio as gr
|
| 4 |
-
import pickle
|
| 5 |
-
import pickletools
|
| 6 |
-
|
| 7 |
-
# store the pickle data in a file named 'payload.pkl'
|
| 8 |
-
with open('resnet.pkl', 'wb') as f:
|
| 9 |
-
pickle.dump(var, f)
|
| 10 |
-
|
| 11 |
-
# disassemble the pickle
|
| 12 |
-
# and print the instructions to the command line
|
| 13 |
-
with open('resnet.pkl', 'rb') as f:
|
| 14 |
-
pickletools.dis(f)
|
| 15 |
|
| 16 |
|
| 17 |
def is_cat(x):returnx[0].isupper()
|
|
|
|
| 1 |
import fastai
|
| 2 |
from fastai.vision.all import*
|
| 3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
|
| 6 |
def is_cat(x):returnx[0].isupper()
|