Spaces:
Running
on
Zero
Running
on
Zero
Update Spaces import and add version print
Browse files
app.py
CHANGED
@@ -35,8 +35,9 @@ from sklearn.neighbors import NearestNeighbors
|
|
35 |
def is_running_in_hf_space():
|
36 |
return "SPACE_ID" in os.environ
|
37 |
|
38 |
-
if is_running_in_hf_space():
|
39 |
-
|
|
|
40 |
|
41 |
import datamapplot
|
42 |
import pyalex
|
|
|
35 |
def is_running_in_hf_space():
|
36 |
return "SPACE_ID" in os.environ
|
37 |
|
38 |
+
#if is_running_in_hf_space():
|
39 |
+
import spaces # necessary to run on Zero.
|
40 |
+
print(f"Spaces version: {spaces.__version__}")
|
41 |
|
42 |
import datamapplot
|
43 |
import pyalex
|