Spaces:
Running
Running
Update restful/controllers.py
Browse files- restful/controllers.py +2 -2
restful/controllers.py
CHANGED
@@ -13,7 +13,7 @@ class cryptocurrency_controller:
|
|
13 |
# Cryptocurrency List
|
14 |
async def crypto_list(self) -> JSONResponse:
|
15 |
try:
|
16 |
-
DATASETS_PATH = './
|
17 |
DATASETS = sorted(
|
18 |
[
|
19 |
item.replace(".csv", "") for item in os.listdir(DATASETS_PATH)
|
@@ -44,7 +44,7 @@ class cryptocurrency_controller:
|
|
44 |
# Cryptocurrency Controller
|
45 |
async def prediction(self, payload: CryptocurrencyPredictionSchema) -> JSONResponse:
|
46 |
try:
|
47 |
-
DATASETS_PATH = './
|
48 |
DATASETS = sorted(
|
49 |
[
|
50 |
item.replace(".csv", "") for item in os.listdir(DATASETS_PATH)
|
|
|
13 |
# Cryptocurrency List
|
14 |
async def crypto_list(self) -> JSONResponse:
|
15 |
try:
|
16 |
+
DATASETS_PATH = './indonesia_stocks/modeling_datas'
|
17 |
DATASETS = sorted(
|
18 |
[
|
19 |
item.replace(".csv", "") for item in os.listdir(DATASETS_PATH)
|
|
|
44 |
# Cryptocurrency Controller
|
45 |
async def prediction(self, payload: CryptocurrencyPredictionSchema) -> JSONResponse:
|
46 |
try:
|
47 |
+
DATASETS_PATH = './indonesia_stocks/modeling_datas'
|
48 |
DATASETS = sorted(
|
49 |
[
|
50 |
item.replace(".csv", "") for item in os.listdir(DATASETS_PATH)
|