HeRksTAn commited on
Commit
1be4fb3
1 Parent(s): 3d2b22d

reinitialized config.tom + changed python version on dockerfile

Browse files
Files changed (3) hide show
  1. .chainlit/config.toml +20 -19
  2. Dockerfile +2 -2
  3. requirements.txt +1 -1
.chainlit/config.toml CHANGED
@@ -1,59 +1,56 @@
1
  [project]
2
  # Whether to enable telemetry (default: true). No personal data is collected.
3
- #enable_telemetry = true
4
-
5
- [meta]
6
- generated_by = "1.0.0"
7
 
8
  # List of environment variables to be provided by each user to use the app.
9
- #user_env = []
10
 
11
  # Duration (in seconds) during which the session is saved when the connection is lost
12
- #session_timeout = 3600
13
 
14
  # Enable third parties caching (e.g LangChain cache)
15
- #cache = false
16
 
17
  # Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
18
  # follow_symlink = false
19
 
20
  [features]
21
  # Show the prompt playground
22
- #prompt_playground = true
23
 
24
  # Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
25
- #unsafe_allow_html = false
26
 
27
  # Process and display mathematical expressions. This can clash with "$" characters in messages.
28
- #latex = false
29
 
30
  # Authorize users to upload files with messages
31
- #multi_modal = true
32
 
33
  # Allows user to use speech to text
34
- #[features.speech_to_text]
35
- # enabled = false
36
- # # See all languages here https://github.com/JamesBrill/react-speech-recognition/blob/HEAD/docs/API.md#language-string
37
- # # language = "en-US"
38
 
39
  [UI]
40
  # Name of the app and chatbot.
41
  name = "Chatbot"
42
 
43
  # Show the readme while the conversation is empty.
44
- #show_readme_as_default = true
45
 
46
  # Description of the app and chatbot. This is used for HTML tags.
47
  # description = ""
48
 
49
  # Large size content are by default collapsed for a cleaner ui
50
- #default_collapse_content = true
51
 
52
  # The default value for the expand messages settings.
53
  default_expand_messages = false
54
 
55
  # Hide the chain of thought details from the user in the UI.
56
- #hide_cot = false
57
 
58
  # Link to your github repo. This will add a github button in the UI's header.
59
  # github = ""
@@ -80,4 +77,8 @@ default_expand_messages = false
80
  [UI.theme.dark.primary]
81
  #main = "#F80061"
82
  #dark = "#980039"
83
- #light = "#FFE7EB"
 
 
 
 
 
1
  [project]
2
  # Whether to enable telemetry (default: true). No personal data is collected.
3
+ enable_telemetry = true
 
 
 
4
 
5
  # List of environment variables to be provided by each user to use the app.
6
+ user_env = []
7
 
8
  # Duration (in seconds) during which the session is saved when the connection is lost
9
+ session_timeout = 3600
10
 
11
  # Enable third parties caching (e.g LangChain cache)
12
+ cache = false
13
 
14
  # Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
15
  # follow_symlink = false
16
 
17
  [features]
18
  # Show the prompt playground
19
+ prompt_playground = true
20
 
21
  # Process and display HTML in messages. This can be a security risk (see https://stackoverflow.com/questions/19603097/why-is-it-dangerous-to-render-user-generated-html-or-javascript)
22
+ unsafe_allow_html = false
23
 
24
  # Process and display mathematical expressions. This can clash with "$" characters in messages.
25
+ latex = false
26
 
27
  # Authorize users to upload files with messages
28
+ multi_modal = true
29
 
30
  # Allows user to use speech to text
31
+ [features.speech_to_text]
32
+ enabled = false
33
+ # See all languages here https://github.com/JamesBrill/react-speech-recognition/blob/HEAD/docs/API.md#language-string
34
+ # language = "en-US"
35
 
36
  [UI]
37
  # Name of the app and chatbot.
38
  name = "Chatbot"
39
 
40
  # Show the readme while the conversation is empty.
41
+ show_readme_as_default = true
42
 
43
  # Description of the app and chatbot. This is used for HTML tags.
44
  # description = ""
45
 
46
  # Large size content are by default collapsed for a cleaner ui
47
+ default_collapse_content = true
48
 
49
  # The default value for the expand messages settings.
50
  default_expand_messages = false
51
 
52
  # Hide the chain of thought details from the user in the UI.
53
+ hide_cot = false
54
 
55
  # Link to your github repo. This will add a github button in the UI's header.
56
  # github = ""
 
77
  [UI.theme.dark.primary]
78
  #main = "#F80061"
79
  #dark = "#980039"
80
+ #light = "#FFE7EB"
81
+
82
+
83
+ [meta]
84
+ generated_by = "0.7.700"
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.9
2
  RUN useradd -m -u 1000 user
3
  USER user
4
  ENV HOME=/home/user \
@@ -8,4 +8,4 @@ COPY --chown=user . $HOME/app
8
  COPY ./requirements.txt ~/app/requirements.txt
9
  RUN pip install -r requirements.txt
10
  COPY . .
11
- CMD ["chainlit", "run", "app.py", "--port", "7860"]
 
1
+ FROM python:3.10
2
  RUN useradd -m -u 1000 user
3
  USER user
4
  ENV HOME=/home/user \
 
8
  COPY ./requirements.txt ~/app/requirements.txt
9
  RUN pip install -r requirements.txt
10
  COPY . .
11
+ CMD ["chainlit", "run", "app.py", "--port", "7860"]
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- chainlit==1.0.0
2
  cohere==4.37
3
  openai==1.3.5
4
  tiktoken==0.5.1
 
1
+ chainlit==0.7.700
2
  cohere==4.37
3
  openai==1.3.5
4
  tiktoken==0.5.1