tryring to fix automation
Browse files- app.py +2 -2
- src/ingest.py +1 -1
app.py
CHANGED
|
@@ -7,7 +7,7 @@ import uvicorn
|
|
| 7 |
|
| 8 |
# Import our custom modules
|
| 9 |
from src.recommender import MovieRecommender
|
| 10 |
-
from src.ingest import
|
| 11 |
|
| 12 |
# --- Configuration ---
|
| 13 |
app = FastAPI(
|
|
@@ -161,4 +161,4 @@ def trigger_update(background_tasks: BackgroundTasks):
|
|
| 161 |
# --- Entry Point ---
|
| 162 |
if __name__ == "__main__":
|
| 163 |
# Use this for debugging. In production, use the command line.
|
| 164 |
-
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
|
| 7 |
|
| 8 |
# Import our custom modules
|
| 9 |
from src.recommender import MovieRecommender
|
| 10 |
+
from src.ingest import ingest_high_quality_movies
|
| 11 |
|
| 12 |
# --- Configuration ---
|
| 13 |
app = FastAPI(
|
|
|
|
| 161 |
# --- Entry Point ---
|
| 162 |
if __name__ == "__main__":
|
| 163 |
# Use this for debugging. In production, use the command line.
|
| 164 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|
src/ingest.py
CHANGED
|
@@ -141,4 +141,4 @@ def ingest_high_quality_movies(target_count=50, reset=False):
|
|
| 141 |
|
| 142 |
if __name__ == "__main__":
|
| 143 |
# Reset=True ensures we rebuild the old movies with the NEW metadata
|
| 144 |
-
ingest_high_quality_movies(target_count=
|
|
|
|
| 141 |
|
| 142 |
if __name__ == "__main__":
|
| 143 |
# Reset=True ensures we rebuild the old movies with the NEW metadata
|
| 144 |
+
ingest_high_quality_movies(target_count=500, reset=True)
|