Spaces:
Build error
Build error
XThomasBU
commited on
Commit
·
5cf3e4d
1
Parent(s):
6d056d5
update
Browse files- .chainlit/config.toml +60 -23
.chainlit/config.toml
CHANGED
@@ -2,6 +2,7 @@
|
|
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 |
|
@@ -11,6 +12,9 @@ session_timeout = 3600
|
|
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 |
|
@@ -22,26 +26,41 @@ prompt_playground = true
|
|
22 |
unsafe_allow_html = false
|
23 |
|
24 |
# Process and display mathematical expressions. This can clash with "$" characters in messages.
|
25 |
-
latex =
|
26 |
-
|
27 |
-
#
|
28 |
-
|
29 |
-
|
30 |
-
#
|
31 |
-
[features.
|
32 |
-
enabled =
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
[UI]
|
37 |
# Name of the app and chatbot.
|
38 |
name = "AI Tutor"
|
39 |
|
40 |
-
# Show the readme while the
|
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
|
@@ -59,26 +78,44 @@ hide_cot = false
|
|
59 |
# The CSS file can be served from the public directory or via an external link.
|
60 |
custom_css = "/public/test.css"
|
61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
# Override default MUI light theme. (Check theme.ts)
|
63 |
[UI.theme.light]
|
64 |
-
background = "#
|
65 |
-
paper = "#FFFFFF"
|
66 |
|
67 |
[UI.theme.light.primary]
|
68 |
-
main = "#
|
69 |
-
dark = "#
|
70 |
-
light = "#FFE7EB"
|
71 |
|
72 |
# Override default MUI dark theme. (Check theme.ts)
|
73 |
[UI.theme.dark]
|
74 |
-
|
75 |
-
|
76 |
|
77 |
[UI.theme.dark.primary]
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
|
82 |
|
83 |
[meta]
|
84 |
-
generated_by = "
|
|
|
2 |
# Whether to enable telemetry (default: true). No personal data is collected.
|
3 |
enable_telemetry = true
|
4 |
|
5 |
+
|
6 |
# List of environment variables to be provided by each user to use the app.
|
7 |
user_env = []
|
8 |
|
|
|
12 |
# Enable third parties caching (e.g LangChain cache)
|
13 |
cache = false
|
14 |
|
15 |
+
# Authorized origins
|
16 |
+
allow_origins = ["*"]
|
17 |
+
|
18 |
# Follow symlink for asset mount (see https://github.com/Chainlit/chainlit/issues/317)
|
19 |
# follow_symlink = false
|
20 |
|
|
|
26 |
unsafe_allow_html = false
|
27 |
|
28 |
# Process and display mathematical expressions. This can clash with "$" characters in messages.
|
29 |
+
latex = false
|
30 |
+
|
31 |
+
# Automatically tag threads with the current chat profile (if a chat profile is used)
|
32 |
+
auto_tag_thread = true
|
33 |
+
|
34 |
+
# Authorize users to spontaneously upload files with messages
|
35 |
+
[features.spontaneous_file_upload]
|
36 |
+
enabled = true
|
37 |
+
accept = ["*/*"]
|
38 |
+
max_files = 20
|
39 |
+
max_size_mb = 500
|
40 |
+
|
41 |
+
[features.audio]
|
42 |
+
# Threshold for audio recording
|
43 |
+
min_decibels = -45
|
44 |
+
# Delay for the user to start speaking in MS
|
45 |
+
initial_silence_timeout = 3000
|
46 |
+
# Delay for the user to continue speaking in MS. If the user stops speaking for this duration, the recording will stop.
|
47 |
+
silence_timeout = 1500
|
48 |
+
# Above this duration (MS), the recording will forcefully stop.
|
49 |
+
max_duration = 15000
|
50 |
+
# Duration of the audio chunks in MS
|
51 |
+
chunk_duration = 1000
|
52 |
+
# Sample rate of the audio
|
53 |
+
sample_rate = 44100
|
54 |
|
55 |
[UI]
|
56 |
# Name of the app and chatbot.
|
57 |
name = "AI Tutor"
|
58 |
|
59 |
+
# Show the readme while the thread is empty.
|
60 |
show_readme_as_default = true
|
61 |
|
62 |
# Description of the app and chatbot. This is used for HTML tags.
|
63 |
+
# description = "AI Tutor - DS598"
|
64 |
|
65 |
# Large size content are by default collapsed for a cleaner ui
|
66 |
default_collapse_content = true
|
|
|
78 |
# The CSS file can be served from the public directory or via an external link.
|
79 |
custom_css = "/public/test.css"
|
80 |
|
81 |
+
# Specify a Javascript file that can be used to customize the user interface.
|
82 |
+
# The Javascript file can be served from the public directory.
|
83 |
+
# custom_js = "/public/test.js"
|
84 |
+
|
85 |
+
# Specify a custom font url.
|
86 |
+
# custom_font = "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap"
|
87 |
+
|
88 |
+
# Specify a custom meta image url.
|
89 |
+
# custom_meta_image_url = "https://chainlit-cloud.s3.eu-west-3.amazonaws.com/logo/chainlit_banner.png"
|
90 |
+
|
91 |
+
# Specify a custom build directory for the frontend.
|
92 |
+
# This can be used to customize the frontend code.
|
93 |
+
# Be careful: If this is a relative path, it should not start with a slash.
|
94 |
+
# custom_build = "./public/build"
|
95 |
+
|
96 |
+
[UI.theme]
|
97 |
+
#layout = "wide"
|
98 |
+
#font_family = "Inter, sans-serif"
|
99 |
# Override default MUI light theme. (Check theme.ts)
|
100 |
[UI.theme.light]
|
101 |
+
#background = "#FAFAFA"
|
102 |
+
#paper = "#FFFFFF"
|
103 |
|
104 |
[UI.theme.light.primary]
|
105 |
+
#main = "#F80061"
|
106 |
+
#dark = "#980039"
|
107 |
+
#light = "#FFE7EB"
|
108 |
|
109 |
# Override default MUI dark theme. (Check theme.ts)
|
110 |
[UI.theme.dark]
|
111 |
+
background = "#1C1C1C" # Slightly lighter dark background color
|
112 |
+
paper = "#2A2A2A" # Slightly lighter dark paper color
|
113 |
|
114 |
[UI.theme.dark.primary]
|
115 |
+
main = "#89CFF0" # Primary color
|
116 |
+
dark = "#3700B3" # Dark variant of primary color
|
117 |
+
light = "#CFBCFF" # Lighter variant of primary color
|
118 |
|
119 |
|
120 |
[meta]
|
121 |
+
generated_by = "1.1.202"
|