subashpoudel commited on
Commit
58d133a
·
1 Parent(s): 7847218

next commit

Browse files
Files changed (4) hide show
  1. .gitignore +4 -0
  2. Dockerfile +0 -37
  3. README.md +6 -6
  4. check.py +0 -11
.gitignore CHANGED
@@ -3,3 +3,7 @@ myenv
3
  *.pyc
4
  __pycache__/
5
  logs
 
 
 
 
 
3
  *.pyc
4
  __pycache__/
5
  logs
6
+ delete_pycache.py
7
+ docker_file_for_actions.txt
8
+ vercel.json
9
+ .github/workflows/main.yaml
Dockerfile CHANGED
@@ -1,37 +0,0 @@
1
- # Use an official Python base image
2
- FROM python:3.13
3
-
4
- # Set working directory
5
- WORKDIR /app
6
-
7
- # Copy dependency files first to leverage Docker cache
8
- COPY requirements.txt .
9
-
10
- # Install dependencies
11
- RUN pip install --upgrade pip && \
12
- pip install -r requirements.txt
13
-
14
- # Copy project files into the container
15
- COPY . .
16
-
17
- # Set environment variables (optional)
18
- ENV PYTHONDONTWRITEBYTECODE=1
19
- ENV PYTHONUNBUFFERED=1
20
-
21
- # Expose port (e.g., 8000 for FastAPI)
22
- EXPOSE 8000
23
-
24
- ARG HUGGINGFACEHUB_ACCESS_TOKEN
25
- ARG GROQ_API_KEY
26
- ARG GOOGLE_API_KEY
27
- ARG OPENAI_API_KEY
28
- ARG ANTHROPIC_API_KEY
29
-
30
- ENV HUGGINGFACEHUB_ACCESS_TOKEN=$HUGGINGFACEHUB_ACCESS_TOKEN
31
- ENV GROQ_API_KEY=$GROQ_API_KEY
32
- ENV GOOGLE_API_KEY=$GOOGLE_API_KEY
33
- ENV OPENAI_API_KEY=$OPENAI_API_KEY
34
- ENV ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
35
-
36
- # Set the command to run the app (adjust as needed)
37
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README.md CHANGED
@@ -1,7 +1,7 @@
1
- title: Trygithubactions1
2
- emoji: 👀
3
- colorFrom: red
4
- colorTo: indigo
5
  sdk: docker
6
- pinned: false
7
- license: mit
 
 
 
1
+
2
+ title: trygithubaction
 
 
3
  sdk: docker
4
+ emoji: 🚀
5
+ colorFrom: blue
6
+ app_file: app.py
7
+ pinned: false
check.py DELETED
@@ -1,11 +0,0 @@
1
- import os
2
- import shutil
3
-
4
- # Set the root directory, e.g., current directory
5
- root_dir = "."
6
-
7
- for dirpath, dirnames, filenames in os.walk(root_dir):
8
- if "__pycache__" in dirnames:
9
- cache_path = os.path.join(dirpath, "__pycache__")
10
- shutil.rmtree(cache_path)
11
- print(f"Deleted: {cache_path}")