Venkat V commited on
Commit
a97c2cd
ยท
1 Parent(s): 928873d

updated render.com, requirements

Browse files
Files changed (2) hide show
  1. render.yaml +11 -4
  2. 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
- startCommand: streamlit run streamlit_app.py --server.port=10000 --server.address=0.0.0.0
9
- plan: free
 
10
  envVars:
11
  - key: PORT
12
- value: 10000
13
- pythonVersion: 3.10
 
 
 
 
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 to process images
8
- uvicorn[standard] # ASGI server to serve the FastAPI app
9
 
10
  # ๐Ÿ” Communication and File Upload
11
- requests # Used by Streamlit to call FastAPI
12
- python-multipart # Enables file upload handling in FastAPI
13
 
14
  # ๐Ÿ–ผ Image Processing
15
- pillow # Image opening and manipulation (PIL)
16
- opencv-python-headless # OpenCV for preprocessing (headless = no GUI required)
17
- numpy # Matrix operations for image handling
18
 
19
- # ๐Ÿ” OCR Engine & Text Cleanup
20
- easyocr # EasyOCR engine with GPU support
21
- textblob # Used to clean and correct OCR output
22
 
23
- # ๐Ÿค– LLMs and Transformers
24
- transformers # Hugging Face Transformers for text summarization
25
- torch # Required by both EasyOCR and Transformers
 
26
 
27
- # ๐Ÿง  Custom Object Detection
28
- ultralytics # YOLOv8/YOLOv9 support (native .pt model inference)
29
 
30
- # ๐Ÿงฎ Flowchart Parsing
31
- shapely # Geometric reasoning for arrows and box mapping
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