JohnTan38 commited on
Commit
89baefc
1 Parent(s): bae39a2

Upload folder using huggingface_hub

Browse files
config/.streamlit/config.toml ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Below are all the sections and options you can have in ~/.streamlit/config.toml.
2
+
3
+ [global]
4
+
5
+ # By default, Streamlit checks if the Python watchdog module is available and, if not, prints a warning asking for you to install it. The watchdog module is not required, but highly recommended. It improves Streamlit's ability to detect changes to files in your filesystem.
6
+ # If you'd like to turn off this warning, set this to True.
7
+ # Default: false
8
+ disableWatchdogWarning = true
9
+
10
+ # If True, will show a warning when you run a Streamlit-enabled script via "python my_script.py".
11
+ # Default: true
12
+ # showWarningOnDirectExecution = true
13
+
14
+ # DataFrame serialization.
15
+ # Acceptable values: - 'legacy': Serialize DataFrames using Streamlit's custom format. Slow but battle-tested. - 'arrow': Serialize DataFrames using Apache Arrow. Much faster and versatile.
16
+ # Default: "arrow"
17
+ # dataFrameSerialization = "arrow"
18
+
19
+
20
+ [logger]
21
+
22
+ # Level of logging: 'error', 'warning', 'info', or 'debug'.
23
+ # Default: 'info'
24
+ # level = "info"
25
+
26
+ # String format for logging messages. If logger.datetimeFormat is set, logger messages will default to `%(asctime)s.%(msecs)03d %(message)s`. See [Python's documentation](https://docs.python.org/2.6/library/logging.html#formatter-objects) for available attributes.
27
+ # Default: "%(asctime)s %(message)s"
28
+ # messageFormat = "%(asctime)s %(message)s"
29
+
30
+
31
+ [client]
32
+
33
+ # Whether to enable st.cache.
34
+ # Default: true
35
+ # caching = true
36
+
37
+ # If false, makes your Streamlit script not draw to a Streamlit app.
38
+ # Default: true
39
+ # displayEnabled = true
40
+
41
+ # Controls whether uncaught app exceptions are displayed in the browser. By default, this is set to True and Streamlit displays app exceptions and associated tracebacks in the browser.
42
+ # If set to False, an exception will result in a generic message being shown in the browser, and exceptions and tracebacks will be printed to the console only.
43
+ # Default: true
44
+ # showErrorDetails = true
45
+
46
+
47
+ [runner]
48
+
49
+ # Allows you to type a variable or string by itself in a single line of Python code to write it to the app.
50
+ # Default: true
51
+ # magicEnabled = true
52
+
53
+ # Install a Python tracer to allow you to stop or pause your script at any point and introspect it. As a side-effect, this slows down your script's execution.
54
+ # Default: false
55
+ # installTracer = false
56
+
57
+ # Sets the MPLBACKEND environment variable to Agg inside Streamlit to prevent Python crashing.
58
+ # Default: true
59
+ # fixMatplotlib = true
60
+
61
+ # Run the Python Garbage Collector after each script execution. This can help avoid excess memory use in Streamlit apps, but could introduce delay in rerunning the app script for high-memory-use applications.
62
+ # Default: true
63
+ # postScriptGC = true
64
+
65
+ # Handle script rerun requests immediately, rather than waiting for script execution to reach a yield point. Enabling this will make Streamlit much more responsive to user interaction, but it can lead to race conditions in apps that mutate session_state data outside of explicit session_state assignment statements.
66
+ # Default: false
67
+ fastReruns = true
68
+
69
+
70
+ [server]
71
+
72
+ # List of folders that should not be watched for changes. This impacts both "Run on Save" and @st.cache.
73
+ # Relative paths will be taken as relative to the current working directory.
74
+ # Example: ['/home/user1/env', 'relative/path/to/folder']
75
+ # Default: []
76
+ # folderWatchBlacklist = []
77
+
78
+ # Change the type of file watcher used by Streamlit, or turn it off completely.
79
+ # Allowed values: * "auto" : Streamlit will attempt to use the watchdog module, and falls back to polling if watchdog is not available. * "watchdog" : Force Streamlit to use the watchdog module. * "poll" : Force Streamlit to always use polling. * "none" : Streamlit will not watch files.
80
+ # Default: "auto"
81
+ fileWatcherType = "auto"
82
+
83
+ # Symmetric key used to produce signed cookies. If deploying on multiple replicas, this should be set to the same value across all replicas to ensure they all share the same secret.
84
+ # Default: randomly generated secret key.
85
+ # cookieSecret = "80f9eb91f1eb64e26f0e46148556bf493ccde5fe27712bbcbebf57948852b5fe"
86
+
87
+ # If false, will attempt to open a browser window on start.
88
+ # Default: false unless (1) we are on a Linux box where DISPLAY is unset, or (2) we are running in the Streamlit Atom plugin.
89
+ # headless = false
90
+
91
+ # Automatically rerun script when the file is modified on disk.
92
+ # Default: false
93
+ # runOnSave = false
94
+
95
+ # The address where the server will listen for client and browser connections. Use this if you want to bind the server to a specific address. If set, the server will only be accessible from this address, and not from any aliases (like localhost).
96
+ # Default: (unset)
97
+ # address =
98
+
99
+ # The port where the server will listen for browser connections.
100
+ # Default: 8501
101
+ port = 7860
102
+
103
+ # The base path for the URL where Streamlit should be served from.
104
+ # Default: ""
105
+ # baseUrlPath = ""
106
+
107
+ # Enables support for Cross-Origin Request Sharing (CORS) protection, for added security.
108
+ # Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS` is off at the same time, we will prioritize `server.enableXsrfProtection`.
109
+ # Default: true
110
+ # enableCORS = true
111
+
112
+ # Enables support for Cross-Site Request Forgery (XSRF) protection, for added security.
113
+ # Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS` is off at the same time, we will prioritize `server.enableXsrfProtection`.
114
+ # Default: true
115
+ # enableXsrfProtection = true
116
+
117
+ # Max size, in megabytes, for files uploaded with the file_uploader.
118
+ # Default: 200
119
+ maxUploadSize = 10
120
+
121
+ # Max size, in megabytes, of messages that can be sent via the WebSocket connection.
122
+ # Default: 200
123
+ # maxMessageSize = 200
124
+
125
+ # Enables support for websocket compression.
126
+ # Default: false
127
+ # enableWebsocketCompression = false
128
+
129
+
130
+ [browser]
131
+
132
+ # Internet address where users should point their browsers in order to connect to the app. Can be IP address or DNS name and path.
133
+ # This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
134
+ # Default: "localhost"
135
+ # serverAddress = "localhost"
136
+
137
+ # Whether to send usage statistics to Streamlit.
138
+ # Default: true
139
+ gatherUsageStats = false
140
+
141
+ # Port where users should point their browsers in order to connect to the app.
142
+ # This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
143
+ # Default: whatever value is set in server.port.
144
+ # serverPort = 8501
145
+
146
+
147
+ [mapbox]
148
+
149
+ # Configure Streamlit to use a custom Mapbox token for elements like st.pydeck_chart and st.map. To get a token for yourself, create an account at https://mapbox.com. It's free (for moderate usage levels)!
150
+ # Default: ""
151
+ # token = ""
152
+
153
+
154
+ [deprecation]
155
+
156
+ # Set to false to disable the deprecation warning for the file uploader encoding.
157
+ # Default: true
158
+ # showfileUploaderEncoding = true
159
+
160
+ # Set to false to disable the deprecation warning for using the global pyplot instance.
161
+ # Default: true
162
+ # showPyplotGlobalUse = true
163
+
164
+
165
+ [theme]
166
+
167
+ # The preset Streamlit theme that your custom theme inherits from. One of "light" or "dark".
168
+ # base =
169
+
170
+ # Primary accent color for interactive elements.
171
+ # primaryColor = "#F633"
172
+
173
+ # Background color for the main content area.
174
+ backgroundColor = "#FFFFFF"
175
+
176
+ # Background color used for the sidebar and most interactive widgets.
177
+ secondaryBackgroundColor = "#F0F2F6"
178
+
179
+ # Color used for almost all text.
180
+ textColor = "#262730"
181
+
182
+ # Font family for all text in the app, except code blocks. One of "sans serif", "serif", or "monospace".
183
+ font = "sans serif"
config/config/config.toml ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Below are all the sections and options you can have in ~/.streamlit/config.toml.
2
+
3
+ [global]
4
+
5
+ # By default, Streamlit checks if the Python watchdog module is available and, if not, prints a warning asking for you to install it. The watchdog module is not required, but highly recommended. It improves Streamlit's ability to detect changes to files in your filesystem.
6
+ # If you'd like to turn off this warning, set this to True.
7
+ # Default: false
8
+ disableWatchdogWarning = true
9
+
10
+ # If True, will show a warning when you run a Streamlit-enabled script via "python my_script.py".
11
+ # Default: true
12
+ # showWarningOnDirectExecution = true
13
+
14
+ # DataFrame serialization.
15
+ # Acceptable values: - 'legacy': Serialize DataFrames using Streamlit's custom format. Slow but battle-tested. - 'arrow': Serialize DataFrames using Apache Arrow. Much faster and versatile.
16
+ # Default: "arrow"
17
+ # dataFrameSerialization = "arrow"
18
+
19
+
20
+ [logger]
21
+
22
+ # Level of logging: 'error', 'warning', 'info', or 'debug'.
23
+ # Default: 'info'
24
+ # level = "info"
25
+
26
+ # String format for logging messages. If logger.datetimeFormat is set, logger messages will default to `%(asctime)s.%(msecs)03d %(message)s`. See [Python's documentation](https://docs.python.org/2.6/library/logging.html#formatter-objects) for available attributes.
27
+ # Default: "%(asctime)s %(message)s"
28
+ # messageFormat = "%(asctime)s %(message)s"
29
+
30
+
31
+ [client]
32
+
33
+ # Whether to enable st.cache.
34
+ # Default: true
35
+ # caching = true
36
+
37
+ # If false, makes your Streamlit script not draw to a Streamlit app.
38
+ # Default: true
39
+ # displayEnabled = true
40
+
41
+ # Controls whether uncaught app exceptions are displayed in the browser. By default, this is set to True and Streamlit displays app exceptions and associated tracebacks in the browser.
42
+ # If set to False, an exception will result in a generic message being shown in the browser, and exceptions and tracebacks will be printed to the console only.
43
+ # Default: true
44
+ # showErrorDetails = true
45
+
46
+
47
+ [runner]
48
+
49
+ # Allows you to type a variable or string by itself in a single line of Python code to write it to the app.
50
+ # Default: true
51
+ # magicEnabled = true
52
+
53
+ # Install a Python tracer to allow you to stop or pause your script at any point and introspect it. As a side-effect, this slows down your script's execution.
54
+ # Default: false
55
+ # installTracer = false
56
+
57
+ # Sets the MPLBACKEND environment variable to Agg inside Streamlit to prevent Python crashing.
58
+ # Default: true
59
+ # fixMatplotlib = true
60
+
61
+ # Run the Python Garbage Collector after each script execution. This can help avoid excess memory use in Streamlit apps, but could introduce delay in rerunning the app script for high-memory-use applications.
62
+ # Default: true
63
+ # postScriptGC = true
64
+
65
+ # Handle script rerun requests immediately, rather than waiting for script execution to reach a yield point. Enabling this will make Streamlit much more responsive to user interaction, but it can lead to race conditions in apps that mutate session_state data outside of explicit session_state assignment statements.
66
+ # Default: false
67
+ fastReruns = true
68
+
69
+
70
+ [server]
71
+
72
+ # List of folders that should not be watched for changes. This impacts both "Run on Save" and @st.cache.
73
+ # Relative paths will be taken as relative to the current working directory.
74
+ # Example: ['/home/user1/env', 'relative/path/to/folder']
75
+ # Default: []
76
+ # folderWatchBlacklist = []
77
+
78
+ # Change the type of file watcher used by Streamlit, or turn it off completely.
79
+ # Allowed values: * "auto" : Streamlit will attempt to use the watchdog module, and falls back to polling if watchdog is not available. * "watchdog" : Force Streamlit to use the watchdog module. * "poll" : Force Streamlit to always use polling. * "none" : Streamlit will not watch files.
80
+ # Default: "auto"
81
+ fileWatcherType = "auto"
82
+
83
+ # Symmetric key used to produce signed cookies. If deploying on multiple replicas, this should be set to the same value across all replicas to ensure they all share the same secret.
84
+ # Default: randomly generated secret key.
85
+ # cookieSecret = "80f9eb91f1eb64e26f0e46148556bf493ccde5fe27712bbcbebf57948852b5fe"
86
+
87
+ # If false, will attempt to open a browser window on start.
88
+ # Default: false unless (1) we are on a Linux box where DISPLAY is unset, or (2) we are running in the Streamlit Atom plugin.
89
+ # headless = false
90
+
91
+ # Automatically rerun script when the file is modified on disk.
92
+ # Default: false
93
+ # runOnSave = false
94
+
95
+ # The address where the server will listen for client and browser connections. Use this if you want to bind the server to a specific address. If set, the server will only be accessible from this address, and not from any aliases (like localhost).
96
+ # Default: (unset)
97
+ # address =
98
+
99
+ # The port where the server will listen for browser connections.
100
+ # Default: 8501
101
+ port = 7860
102
+
103
+ # The base path for the URL where Streamlit should be served from.
104
+ # Default: ""
105
+ # baseUrlPath = ""
106
+
107
+ # Enables support for Cross-Origin Request Sharing (CORS) protection, for added security.
108
+ # Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS` is off at the same time, we will prioritize `server.enableXsrfProtection`.
109
+ # Default: true
110
+ # enableCORS = true
111
+
112
+ # Enables support for Cross-Site Request Forgery (XSRF) protection, for added security.
113
+ # Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is on and `server.enableCORS` is off at the same time, we will prioritize `server.enableXsrfProtection`.
114
+ # Default: true
115
+ # enableXsrfProtection = true
116
+
117
+ # Max size, in megabytes, for files uploaded with the file_uploader.
118
+ # Default: 200
119
+ maxUploadSize = 10
120
+
121
+ # Max size, in megabytes, of messages that can be sent via the WebSocket connection.
122
+ # Default: 200
123
+ # maxMessageSize = 200
124
+
125
+ # Enables support for websocket compression.
126
+ # Default: false
127
+ # enableWebsocketCompression = false
128
+
129
+
130
+ [browser]
131
+
132
+ # Internet address where users should point their browsers in order to connect to the app. Can be IP address or DNS name and path.
133
+ # This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
134
+ # Default: "localhost"
135
+ # serverAddress = "localhost"
136
+
137
+ # Whether to send usage statistics to Streamlit.
138
+ # Default: true
139
+ gatherUsageStats = false
140
+
141
+ # Port where users should point their browsers in order to connect to the app.
142
+ # This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
143
+ # Default: whatever value is set in server.port.
144
+ # serverPort = 8501
145
+
146
+
147
+ [mapbox]
148
+
149
+ # Configure Streamlit to use a custom Mapbox token for elements like st.pydeck_chart and st.map. To get a token for yourself, create an account at https://mapbox.com. It's free (for moderate usage levels)!
150
+ # Default: ""
151
+ # token = ""
152
+
153
+
154
+ [deprecation]
155
+
156
+ # Set to false to disable the deprecation warning for the file uploader encoding.
157
+ # Default: true
158
+ # showfileUploaderEncoding = true
159
+
160
+ # Set to false to disable the deprecation warning for using the global pyplot instance.
161
+ # Default: true
162
+ # showPyplotGlobalUse = true
163
+
164
+
165
+ [theme]
166
+
167
+ # The preset Streamlit theme that your custom theme inherits from. One of "light" or "dark".
168
+ # base =
169
+
170
+ # Primary accent color for interactive elements.
171
+ # primaryColor = "#F633"
172
+
173
+ # Background color for the main content area.
174
+ backgroundColor = "#FFFFFF"
175
+
176
+ # Background color used for the sidebar and most interactive widgets.
177
+ secondaryBackgroundColor = "#F0F2F6"
178
+
179
+ # Color used for almost all text.
180
+ textColor = "#262730"
181
+
182
+ # Font family for all text in the app, except code blocks. One of "sans serif", "serif", or "monospace".
183
+ font = "sans serif"