Spaces:
Sleeping
Sleeping
update dtypes
Browse files
run.py
CHANGED
@@ -86,7 +86,9 @@ if __name__ == "__main__":
|
|
86 |
)
|
87 |
ds = datasets.concatenate_datasets([ds, ds_enrichment], split=ds.split, axis=1)
|
88 |
|
89 |
-
dtypes = {
|
|
|
|
|
90 |
for col in ds.column_names:
|
91 |
if "embedding" in col and isinstance(ds.features[col], datasets.Sequence):
|
92 |
dtypes[col] = spotlight.dtypes.embedding_dtype
|
@@ -99,6 +101,8 @@ if __name__ == "__main__":
|
|
99 |
)
|
100 |
print(f"Serving Hugging Face dataset {hf_settings}.")
|
101 |
|
|
|
|
|
102 |
|
103 |
spotlight.show(
|
104 |
ds, host="0.0.0.0", port=7860, wait="forever", dtype=dtypes, layout="esc50-layout.json", analyze=False
|
|
|
86 |
)
|
87 |
ds = datasets.concatenate_datasets([ds, ds_enrichment], split=ds.split, axis=1)
|
88 |
|
89 |
+
dtypes = {"DistanceToDriverAhead": spotlight.Sequence1D, "RPM": spotlight.Sequence1D, "Speed": spotlight.Sequence1D, "nGear": spotlight.Sequence1D,
|
90 |
+
"Throttle": spotlight.Sequence1D, "Brake": spotlight.Sequence1D, "DRS": spotlight.Sequence1D, "X": spotlight.Sequence1D, "Y": spotlight.Sequence1D, "Z": spotlight.Sequence1D}
|
91 |
+
|
92 |
for col in ds.column_names:
|
93 |
if "embedding" in col and isinstance(ds.features[col], datasets.Sequence):
|
94 |
dtypes[col] = spotlight.dtypes.embedding_dtype
|
|
|
101 |
)
|
102 |
print(f"Serving Hugging Face dataset {hf_settings}.")
|
103 |
|
104 |
+
ds_s = ds.
|
105 |
+
|
106 |
|
107 |
spotlight.show(
|
108 |
ds, host="0.0.0.0", port=7860, wait="forever", dtype=dtypes, layout="esc50-layout.json", analyze=False
|