Spaces:
Sleeping
Sleeping
zykrix commited on
Commit ·
18b2f85
1
Parent(s): ed4eb4d
Added render.yaml and start.sh for deployment
Browse files- render.yaml +11 -0
- start.sh +7 -0
render.yaml
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
- type: web
|
| 3 |
+
name: nlp-assistant
|
| 4 |
+
env: python
|
| 5 |
+
plan: starter
|
| 6 |
+
region: oregon
|
| 7 |
+
buildCommand: pip install -r requirements.txt
|
| 8 |
+
startCommand: ./start.sh
|
| 9 |
+
envVars:
|
| 10 |
+
- key: PYTHON_VERSION
|
| 11 |
+
value: 3.10
|
start.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# Optional: install missing spaCy model manually (if not auto-installed)
|
| 4 |
+
python -m spacy download en_core_web_md
|
| 5 |
+
|
| 6 |
+
# Start Streamlit app
|
| 7 |
+
streamlit run app.py --server.port=$PORT --server.address=0.0.0.0
|