We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7ba0da commit d182fbeCopy full SHA for d182fbe
2 files changed
app/__init__.py
@@ -0,0 +1,5 @@
1
+# exposeing main app object for imports
2
+from .main import app
3
+
4
+# defining __all__ for clean namespace
5
+__all__ = ["app"]
render.yaml
@@ -0,0 +1,17 @@
+services:
+ - type: web
+ name: fake-news-detector-api
+ env: python
+ plan: free
6
+ branch: main # default branch
7
+ buildCommand: pip install -r requirements.txt
8
+ startCommand: uvicorn app.main:app --host 0.0.0.0 --port 10000
9
+ envVars:
10
+ - key: MODEL_PATH
11
+ value: models/ensemble_voting_model.pkl
12
+ - key: VECTORIZER_PATH
13
+ value: models/tfidf_vectorizer.pkl
14
+ - key: LOG_LEVEL
15
+ value: INFO
16
+ autoDeploy: true
17
+ region: oregon # closest region for users
0 commit comments