Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
fix import
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os
|
|
|
2 |
|
3 |
is_spaces = True if os.environ.get("SPACE_ID") else False
|
4 |
|
@@ -27,7 +28,6 @@ import json
|
|
27 |
import yaml
|
28 |
from slugify import slugify
|
29 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
30 |
-
import subprocess
|
31 |
|
32 |
if not is_spaces:
|
33 |
from toolkit.job import get_job
|
|
|
1 |
import os
|
2 |
+
import subprocess
|
3 |
|
4 |
is_spaces = True if os.environ.get("SPACE_ID") else False
|
5 |
|
|
|
28 |
import yaml
|
29 |
from slugify import slugify
|
30 |
from transformers import AutoProcessor, AutoModelForCausalLM
|
|
|
31 |
|
32 |
if not is_spaces:
|
33 |
from toolkit.job import get_job
|