Spaces:
Runtime error
Runtime error
Amanda Sarubbi
commited on
Commit
·
c1c6839
1
Parent(s):
2177bfe
TEST
Browse files
app.py
CHANGED
@@ -5,15 +5,15 @@ Model Gradio UI
|
|
5 |
# imports
|
6 |
from fastai.vision.all import *
|
7 |
import gradio as gr
|
8 |
-
|
9 |
from huggingface_hub import hf_hub_download
|
10 |
#########################################################################
|
11 |
# user access token for HF model library
|
12 |
ACCESS_TOKEN = "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"
|
13 |
#########################################################################
|
14 |
#Consider path seperators for alternate OS
|
15 |
-
|
16 |
-
|
17 |
#########################################################################
|
18 |
def import_model(model_name):
|
19 |
|
|
|
5 |
# imports
|
6 |
from fastai.vision.all import *
|
7 |
import gradio as gr
|
8 |
+
import pathlib
|
9 |
from huggingface_hub import hf_hub_download
|
10 |
#########################################################################
|
11 |
# user access token for HF model library
|
12 |
ACCESS_TOKEN = "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"
|
13 |
#########################################################################
|
14 |
#Consider path seperators for alternate OS
|
15 |
+
plt = platform.system()
|
16 |
+
if plt != 'Windows': pathlib.WindowsPath = pathlib.PosixPath
|
17 |
#########################################################################
|
18 |
def import_model(model_name):
|
19 |
|