Spaces:
Sleeping
Sleeping
Venkat V
commited on
Commit
ยท
a97c2cd
1
Parent(s):
928873d
updated render.com, requirements
Browse files- render.yaml +11 -4
- requirements.txt +18 -20
render.yaml
CHANGED
@@ -2,12 +2,19 @@ services:
|
|
2 |
- type: web
|
3 |
name: flowchart-app
|
4 |
env: python
|
|
|
|
|
5 |
buildCommand: |
|
6 |
apt-get update && apt-get install -y tesseract-ocr
|
|
|
7 |
pip install -r requirements.txt
|
8 |
-
|
9 |
-
|
|
|
10 |
envVars:
|
11 |
- key: PORT
|
12 |
-
value: 10000
|
13 |
-
|
|
|
|
|
|
|
|
2 |
- type: web
|
3 |
name: flowchart-app
|
4 |
env: python
|
5 |
+
plan: free
|
6 |
+
|
7 |
buildCommand: |
|
8 |
apt-get update && apt-get install -y tesseract-ocr
|
9 |
+
pip install --upgrade pip
|
10 |
pip install -r requirements.txt
|
11 |
+
|
12 |
+
startCommand: streamlit run streamlit_app.py --server.port=$PORT --server.address=0.0.0.0
|
13 |
+
|
14 |
envVars:
|
15 |
- key: PORT
|
16 |
+
value: 10000 # Render sets this automatically, safe fallback
|
17 |
+
- key: PYTHON_VERSION
|
18 |
+
value: "3.10"
|
19 |
+
|
20 |
+
autoDeploy: true
|
requirements.txt
CHANGED
@@ -4,31 +4,29 @@
|
|
4 |
|
5 |
# ๐ Web App Frameworks
|
6 |
streamlit # UI interface for uploading images and viewing output
|
7 |
-
fastapi # Backend API
|
8 |
-
uvicorn[standard] # ASGI server to serve
|
9 |
|
10 |
# ๐ Communication and File Upload
|
11 |
-
requests #
|
12 |
-
python-multipart # Enables file
|
13 |
|
14 |
# ๐ผ Image Processing
|
15 |
-
pillow #
|
16 |
-
opencv-python-headless # OpenCV
|
17 |
-
numpy #
|
18 |
|
19 |
-
# ๐ OCR
|
20 |
-
easyocr #
|
21 |
-
textblob
|
22 |
|
23 |
-
# ๐ค
|
24 |
-
|
25 |
-
torch #
|
|
|
26 |
|
27 |
-
#
|
28 |
-
|
29 |
|
30 |
-
#
|
31 |
-
|
32 |
-
|
33 |
-
# Optional (for visual debugging, if needed):
|
34 |
-
# matplotlib # Optional for visual debugging or plotting
|
|
|
4 |
|
5 |
# ๐ Web App Frameworks
|
6 |
streamlit # UI interface for uploading images and viewing output
|
7 |
+
fastapi # Backend API for image parsing
|
8 |
+
uvicorn[standard] # ASGI server to serve FastAPI app
|
9 |
|
10 |
# ๐ Communication and File Upload
|
11 |
+
requests # For Streamlit-to-FastAPI HTTP calls
|
12 |
+
python-multipart # Enables file uploads in FastAPI
|
13 |
|
14 |
# ๐ผ Image Processing
|
15 |
+
pillow # PIL image handling
|
16 |
+
opencv-python-headless # OpenCV without GUI dependencies
|
17 |
+
numpy # Core image array operations
|
18 |
|
19 |
+
# ๐ OCR & Text Processing
|
20 |
+
easyocr # GPU-capable OCR engine
|
21 |
+
textblob # Optional: lightweight text post-processing (optional)
|
22 |
|
23 |
+
# ๐ค Object Detection and Language Models
|
24 |
+
ultralytics # YOLOv8/v9 detection (loads .pt models)
|
25 |
+
torch # Backend for YOLO and EasyOCR
|
26 |
+
transformers # Optional: used for text summarization (LLMs)
|
27 |
|
28 |
+
# ๐ Geometry Utilities
|
29 |
+
shapely # Geometry operations for arrow-head box logic
|
30 |
|
31 |
+
# โ
Optional Debug Tools (Uncomment if needed)
|
32 |
+
# matplotlib # For plotting / bounding box debug
|
|
|
|
|
|