deploy
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
from pathlib import *
|
4 |
import platform
|
5 |
plt = platform.system()
|
6 |
-
if plt == '
|
7 |
|
8 |
# %% auto 0
|
9 |
__all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'classify_image']
|
@@ -29,3 +29,4 @@ examples = ['chillypotato.jpg', 'friedrice.jpg', 'momos.jpg']
|
|
29 |
|
30 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
31 |
intf.launch(inline=False)
|
|
|
|
3 |
from pathlib import *
|
4 |
import platform
|
5 |
plt = platform.system()
|
6 |
+
if plt == 'Linux': pathlib.WindowsPath = pathlib.PosixPath
|
7 |
|
8 |
# %% auto 0
|
9 |
__all__ = ['learn', 'categories', 'image', 'label', 'examples', 'intf', 'classify_image']
|
|
|
29 |
|
30 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
31 |
intf.launch(inline=False)
|
32 |
+
|