-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated and added ai based chatbot with dockerized env
- Loading branch information
1 parent
47a16e1
commit 2d1f6ba
Showing
11 changed files
with
1,198 additions
and
32 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
*.xls | ||
*.xlsx | ||
*.txt | ||
!mysql-init/init.sql | ||
!mysql-init/init.sql | ||
/ai/venv |
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
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,6 @@ | ||
MYSQL_HOST=localhost | ||
MYSQL_PORT=3306 | ||
MYSQL_USER=dere_admin | ||
MYSQL_PASSWORD=dere_admin | ||
MYSQL_DATABASE=dere_dev | ||
GROQ_API_KEY=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 |
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 @@ | ||
# ./chat/Dockerfile | ||
|
||
FROM python:3.9-slim | ||
|
||
WORKDIR /chat | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
build-essential \ | ||
curl \ | ||
software-properties-common \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy requirements.txt first to leverage Docker cache | ||
COPY requirements.txt . | ||
|
||
# Install dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# Copy the rest of the application | ||
COPY . . | ||
|
||
EXPOSE 8502 | ||
|
||
HEALTHCHECK CMD curl --fail http://localhost:8502/_stcore/health | ||
|
||
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8502", "--server.address=0.0.0.0"] |
Oops, something went wrong.