Duc Haba
commited on
Commit
·
ff30d46
1
Parent(s):
2bd7a16
add import everywhere
Browse files
app.py
CHANGED
|
@@ -22,6 +22,7 @@ import types
|
|
| 22 |
import cpuinfo
|
| 23 |
import pathlib
|
| 24 |
import subprocess
|
|
|
|
| 25 |
# define class Pluto_Happy
|
| 26 |
class Pluto_Happy(object):
|
| 27 |
"""
|
|
@@ -570,6 +571,8 @@ def is_system_verified():
|
|
| 570 |
# prompt: using fast.ai to load image learner from file butterfly_learner_1703921531_loss_0.061586.pkl
|
| 571 |
|
| 572 |
# from fastai.learner import load_learner
|
|
|
|
|
|
|
| 573 |
fname = "./butterfly_learner_1722973740.pkl"
|
| 574 |
foxy.learner = fastai.learner.load_learner(fname)
|
| 575 |
# %%write -a app.py
|
|
|
|
| 22 |
import cpuinfo
|
| 23 |
import pathlib
|
| 24 |
import subprocess
|
| 25 |
+
import fastai
|
| 26 |
# define class Pluto_Happy
|
| 27 |
class Pluto_Happy(object):
|
| 28 |
"""
|
|
|
|
| 571 |
# prompt: using fast.ai to load image learner from file butterfly_learner_1703921531_loss_0.061586.pkl
|
| 572 |
|
| 573 |
# from fastai.learner import load_learner
|
| 574 |
+
import fastai
|
| 575 |
+
import fastai.learner
|
| 576 |
fname = "./butterfly_learner_1722973740.pkl"
|
| 577 |
foxy.learner = fastai.learner.load_learner(fname)
|
| 578 |
# %%write -a app.py
|