AlgoX commited on
Commit
c1f5829
Β·
1 Parent(s): ed26c26
deployment/main.py β†’ app.py RENAMED
@@ -10,7 +10,7 @@ import os
10
  import json
11
  import math
12
  from typing import Union
13
- from config import load_model_config, get_input_size
14
 
15
  # --- Helper function to get model device ---
16
  def get_model_device(model):
@@ -673,7 +673,7 @@ class xLSTMPredictor(nn.Module):
673
  app = FastAPI()
674
 
675
  # --- Load Models ---
676
- MODELS_DIR = "models"
677
  models = {}
678
 
679
  # Load PyTorch models
 
10
  import json
11
  import math
12
  from typing import Union
13
+ from deployment.config import load_model_config, get_input_size
14
 
15
  # --- Helper function to get model device ---
16
  def get_model_device(model):
 
673
  app = FastAPI()
674
 
675
  # --- Load Models ---
676
+ MODELS_DIR = "deployment/models"
677
  models = {}
678
 
679
  # Load PyTorch models
deployment/README.md DELETED
@@ -1,13 +0,0 @@
1
- ---
2
- title: Stock Predictor API
3
- emoji: πŸš€
4
- colorFrom: blue
5
- colorTo: purple
6
- sdk: docker
7
- app_file: main.py
8
- app_port: 7860
9
- ---
10
-
11
- # Stock Predictor API on Hugging Face Spaces
12
-
13
- This is a FastAPI application that provides stock predictions using various machine learning models.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
deployment/requirements.txt β†’ requirements.txt RENAMED
File without changes