ghostdrive1 commited on
Commit
74b880e
·
verified ·
1 Parent(s): af5f922

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. Dockerfile +19 -0
  2. main.py +0 -0
  3. requirements.txt +11 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM mcr.microsoft.com/playwright:v1.44.0-jammy
2
+
3
+ WORKDIR /app
4
+
5
+ # Install python and pip
6
+ RUN apt-get update && apt-get install -y python3 python3-pip && rm -rf /var/lib/apt/lists/*
7
+
8
+ COPY requirements.txt .
9
+ RUN pip3 install --no-cache-dir -r requirements.txt
10
+
11
+ # Install playwright browsers
12
+ RUN pip3 install playwright
13
+ RUN playwright install chromium
14
+
15
+ COPY . .
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
main.py ADDED
File without changes
requirements.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ fastapi
2
+ uvicorn
3
+ markitdown
4
+ tree-sitter
5
+ tree-sitter-python
6
+ tree-sitter-javascript
7
+ qdrant-client
8
+ requests
9
+ websockets
10
+ huggingface_hub
11
+ python-multipart