-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from sudeeppr1998/main
Initial Commit for Text Eval Service
- Loading branch information
Showing
5 changed files
with
419 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# Local development settings | ||
.env | ||
.venv | ||
|
||
# IDE files (can vary based on your editor/IDE) | ||
.idea/ | ||
.vscode/ | ||
|
||
# Compiled Python files | ||
*.pyc | ||
|
||
# Dependency directories | ||
venv/ | ||
env/ | ||
envs/ | ||
|
||
# Log files | ||
*.log | ||
|
||
# Environment variables file | ||
.env | ||
|
||
# System or configuration files | ||
.DS_Store | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Dockerfile | ||
|
||
# Use the official Python image as the base image | ||
FROM python:3.10-slim-buster | ||
|
||
# Install FFmpeg | ||
RUN apt-get update && \ | ||
apt-get install -y ffmpeg && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Set the working directory in the container | ||
WORKDIR /app | ||
|
||
# Copy the requirements file and install dependencies | ||
COPY requirements.txt . | ||
|
||
# Install app dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# Copy all the files to the container | ||
COPY . . | ||
|
||
# Expose the port that the app runs on | ||
EXPOSE 5000 | ||
|
||
# Command to run the Flask application | ||
CMD ["python", "app.py","--host","0.0.0.0"] |
Oops, something went wrong.