Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
|
@@ -10,7 +10,7 @@ from pathlib import Path
|
|
| 10 |
torch.backends.cuda.matmul.allow_tf32 = True # allow tf32 on matmul
|
| 11 |
torch.backends.cudnn.allow_tf32 = True # allow tf32 on cudnn
|
| 12 |
|
| 13 |
-
class
|
| 14 |
"""
|
| 15 |
Handler class.
|
| 16 |
"""
|
|
@@ -124,7 +124,7 @@ class ApogeeHandler:
|
|
| 124 |
|
| 125 |
if __name__ == "__main__":
|
| 126 |
import pandas as pd
|
| 127 |
-
handler =
|
| 128 |
test_path = Path(__file__).parents[2] / "tests" / "assets" / "BTCUSDT-1m-2019-03.csv"
|
| 129 |
with open(test_path, "r") as f:
|
| 130 |
data = pd.read_csv(f)
|
|
|
|
| 10 |
torch.backends.cuda.matmul.allow_tf32 = True # allow tf32 on matmul
|
| 11 |
torch.backends.cudnn.allow_tf32 = True # allow tf32 on cudnn
|
| 12 |
|
| 13 |
+
class EndpointHandler:
|
| 14 |
"""
|
| 15 |
Handler class.
|
| 16 |
"""
|
|
|
|
| 124 |
|
| 125 |
if __name__ == "__main__":
|
| 126 |
import pandas as pd
|
| 127 |
+
handler = EndpointHandler()
|
| 128 |
test_path = Path(__file__).parents[2] / "tests" / "assets" / "BTCUSDT-1m-2019-03.csv"
|
| 129 |
with open(test_path, "r") as f:
|
| 130 |
data = pd.read_csv(f)
|