Spaces:
Sleeping
Sleeping
Commit ·
7c0e851
1
Parent(s): 553ede1
Fixed import issues for script
Browse files
app.ipynb
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
app.py
CHANGED
|
@@ -4,6 +4,13 @@
|
|
| 4 |
__all__ = ['plt', 'learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
|
| 5 |
|
| 6 |
# %% ../app.ipynb 2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
from fastai.vision.all import *
|
| 8 |
import gradio as gr
|
| 9 |
import pathlib as pl
|
|
|
|
| 4 |
__all__ = ['plt', 'learn', 'categories', 'image', 'label', 'examples', 'intf', 'is_cat', 'classify_image']
|
| 5 |
|
| 6 |
# %% ../app.ipynb 2
|
| 7 |
+
import sys
|
| 8 |
+
import subprocess
|
| 9 |
+
|
| 10 |
+
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'gradio==3.50'])
|
| 11 |
+
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'fastai'])
|
| 12 |
+
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'ipywidgets'])
|
| 13 |
+
|
| 14 |
from fastai.vision.all import *
|
| 15 |
import gradio as gr
|
| 16 |
import pathlib as pl
|