Spaces:
Running
Running
Sync from GitHub via hub-sync
Browse files- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -8,7 +8,7 @@ from .models import InferenceLog
|
|
| 8 |
from .schemas import SentimentRequest, SentimentResponse
|
| 9 |
from . import ml_model
|
| 10 |
|
| 11 |
-
Base.metadata.create_all(bind=
|
| 12 |
|
| 13 |
app = FastAPI(
|
| 14 |
title='FinBERT Sentiment Analyzer API',
|
|
|
|
| 8 |
from .schemas import SentimentRequest, SentimentResponse
|
| 9 |
from . import ml_model
|
| 10 |
|
| 11 |
+
Base.metadata.create_all(bind=engine) # Ensure tables are created at startup
|
| 12 |
|
| 13 |
app = FastAPI(
|
| 14 |
title='FinBERT Sentiment Analyzer API',
|