Spaces:
Runtime error
Runtime error
import spaces only on HuggingFace
Browse files
app.py
CHANGED
@@ -3,7 +3,10 @@ import json
|
|
3 |
import torch
|
4 |
import time
|
5 |
import random
|
6 |
-
|
|
|
|
|
|
|
7 |
|
8 |
from tqdm import tqdm
|
9 |
from huggingface_hub import snapshot_download
|
|
|
3 |
import torch
|
4 |
import time
|
5 |
import random
|
6 |
+
try:
|
7 |
+
# Only on HuggingFace
|
8 |
+
import spaces
|
9 |
+
except ImportError:
|
10 |
|
11 |
from tqdm import tqdm
|
12 |
from huggingface_hub import snapshot_download
|