Hammad712 commited on
Commit
ba0cfde
·
1 Parent(s): a333428

chore: clean up pycache and update gitignore

Browse files
.gitignore CHANGED
@@ -10,4 +10,7 @@ venv/
10
  ENV/
11
 
12
  # OS files
13
- .DS_Store
 
 
 
 
10
  ENV/
11
 
12
  # OS files
13
+ .DS_Store__pycache__/
14
+ *.pyc
15
+ .venv/
16
+ .env
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM python:3.10-slim
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies for Video/Audio processing (FFmpeg is usually a must)
8
+ RUN apt-get update && apt-get install -y \
9
+ ffmpeg \
10
+ libgl1-mesa-glx \
11
+ libglib2.0-0 \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Copy requirements and install
15
+ COPY requirements.txt .
16
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
17
+
18
+ # Copy the entire project
19
+ COPY . .
20
+
21
+ # Hugging Face Spaces uses port 7860 by default
22
+ EXPOSE 7860
23
+
24
+ # Run the FastAPI app using uvicorn
25
+ # We map the internal port to 7860 to match HF requirements
26
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
app/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (160 Bytes)
 
app/__pycache__/config.cpython-312.pyc DELETED
Binary file (1.18 kB)
 
app/__pycache__/dependencies.cpython-312.pyc DELETED
Binary file (1.44 kB)
 
app/__pycache__/main.cpython-312.pyc DELETED
Binary file (2.06 kB)
 
app/config.py CHANGED
@@ -24,3 +24,4 @@ class Settings:
24
  VIDEOS_DIR = "temp_videos"
25
 
26
  settings = Settings()
 
 
24
  VIDEOS_DIR = "temp_videos"
25
 
26
  settings = Settings()
27
+
app/db/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (163 Bytes)
 
app/db/__pycache__/chat_manager.cpython-312.pyc DELETED
Binary file (2.57 kB)
 
app/db/__pycache__/mongodb.cpython-312.pyc DELETED
Binary file (1.53 kB)
 
app/models/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (167 Bytes)
 
app/models/__pycache__/transcription.cpython-312.pyc DELETED
Binary file (1.56 kB)
 
app/models/__pycache__/user.cpython-312.pyc DELETED
Binary file (1.32 kB)
 
app/routes/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (167 Bytes)
 
app/routes/__pycache__/auth.cpython-312.pyc DELETED
Binary file (2.22 kB)
 
app/routes/__pycache__/query.cpython-312.pyc DELETED
Binary file (3.04 kB)
 
app/routes/__pycache__/sessions.cpython-312.pyc DELETED
Binary file (5.05 kB)
 
app/routes/__pycache__/video.cpython-312.pyc DELETED
Binary file (7.32 kB)
 
app/services/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (169 Bytes)
 
app/services/__pycache__/auth.cpython-312.pyc DELETED
Binary file (2.13 kB)
 
app/services/__pycache__/llm.cpython-312.pyc DELETED
Binary file (2.95 kB)
 
app/services/__pycache__/transcription.cpython-312.pyc DELETED
Binary file (3.51 kB)