sadran commited on
Commit
3581d3e
Β·
verified Β·
1 Parent(s): c88fdbe

Upload 4 files

Browse files
Files changed (4) hide show
  1. Dockerfile +36 -0
  2. chain_app.py +0 -0
  3. chainlit.md +7 -0
  4. requirements.txt +7 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9
2
+
3
+ # Install necessary packages
4
+ RUN apt-get update && \
5
+ apt-get install -y \
6
+ bash \
7
+ git git-lfs \
8
+ wget curl procps \
9
+ htop vim nano && \
10
+ rm -rf /var/lib/apt/lists/*
11
+
12
+ # Create a new user
13
+ RUN useradd -m -u 1000 user
14
+
15
+ # Set environment variables
16
+ ENV HOME=/home/user \
17
+ PATH=/home/user/.local/bin:$PATH
18
+
19
+ # Set working directory
20
+ WORKDIR /app
21
+
22
+ # Copy the application files
23
+ COPY ./ /app
24
+
25
+ # Change ownership of the application files
26
+ RUN chown -R user:user /app
27
+
28
+ # Switch to the new user
29
+ USER user
30
+
31
+ # Copy and install Python dependencies
32
+ COPY --chown=user:user requirements.txt $HOME/app/requirements.txt
33
+ RUN pip install --no-cache-dir -r $HOME/app/requirements.txt
34
+
35
+ # Set the command to run the application
36
+ CMD ["chainlit", "run", "chain_app.py", "-w", "--port", "7860" ,"-h"]
chain_app.py ADDED
The diff for this file is too large to render. See raw diff
 
chainlit.md ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ Welcome to neural brain! πŸš€πŸ€–
2
+ Hi there, Developer! πŸ‘‹ We're excited to have you on board. neural brain is a powerful tool designed to help you prototype, run, use Large Language Models (LLMs)
3
+
4
+ Useful Links πŸ”—
5
+ Documentation: Get started with our website neural nexus πŸ“š
6
+ Attention
7
+ please be aware that LLMs can make mistakes, Neural Brain team is focusing on providing AI to people and make AI more accessible and easier to use. so we are not taking the responsibilty of models performance.
requirements.txt ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ chainlit
2
+ gradio_client
3
+ openai
4
+ groq
5
+ cohere
6
+ huggingface-hub
7
+ fireworks-ai