Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
f336b41
Adjusted according to wireframe
QuinnGrace Jun 12, 2023
b8031f0
Merge pull request #1 from BM5TechIntel/Quinn
QuinnGrace Jun 12, 2023
7a9ab23
typo fixed
QuinnGrace Jun 12, 2023
01d7534
Add files via upload
Sorach-Roshe Jun 14, 2023
13b55a1
visual added to simple explanation
Sorach-Roshe Jun 16, 2023
499453d
Image added to the how it works section
Sorach-Roshe Jun 16, 2023
2825027
The image added is in the resources folder
Sorach-Roshe Jun 16, 2023
f4a07cd
Added background image
QuinnGrace Jun 17, 2023
bda7172
I have added more text, we still need more visuals especially in the …
Sorach-Roshe Jun 19, 2023
6b2766b
Added the opaque image
QuinnGrace Jun 21, 2023
49c140b
Made it faster with caching
QuinnGrace Jun 21, 2023
2ecafbe
Merge pull request #2 from BM5TechIntel/Quinn
QuinnGrace Jun 21, 2023
8646ed0
I have added a couple of other things, except the background image
Sorach-Roshe Jun 21, 2023
e13f0fc
Merge branch 'master' into Olanike
QuinnGrace Jun 21, 2023
c0b9a30
Merge pull request #3 from BM5TechIntel/Olanike
QuinnGrace Jun 21, 2023
8ee0bc0
fixed output
QuinnGrace Jun 21, 2023
26116a1
I have added the FAQs and our pictures.
Sorach-Roshe Jun 22, 2023
4853f22
I updated the group photograph and added roles
Sorach-Roshe Jun 22, 2023
2c19899
added pickle model
QuinnGrace Jun 24, 2023
b03dd22
Fixed errors by adding vect pkl
QuinnGrace Jun 25, 2023
7d384cf
Merge pull request #4 from BM5TechIntel/Quinn
QuinnGrace Jun 25, 2023
761cb86
Merge branch 'master' into Sorach-Roshe
QuinnGrace Jun 25, 2023
5f4e49f
Merge pull request #5 from BM5TechIntel/Sorach-Roshe
QuinnGrace Jun 25, 2023
a00a822
changed pie chart
QuinnGrace Jun 25, 2023
21cff65
Feedback saves to a document
QuinnGrace Jun 25, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
321 changes: 299 additions & 22 deletions base_app.py

Large diffs are not rendered by default.

209 changes: 209 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
# Below are all the sections and options you can have in ~/.streamlit/config.toml.

[global]

# 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.
# If you'd like to turn off this warning, set this to True.
# Default: false
# disableWatchdogWarning = false

# By default, Streamlit displays a warning when a user sets both a widget default value in the function defining the widget and a widget value via the widget's key in `st.session_state`.
# If you'd like to turn off this warning, set this to True.
# Default: false
# disableWidgetStateDuplicationWarning = false

# If True, will show a warning when you run a Streamlit-enabled script via "python my_script.py".
# Default: true
# showWarningOnDirectExecution = true

# DataFrame serialization.
# Acceptable values: - 'legacy': Serialize DataFrames using Streamlit's custom format. Slow but battle-tested. - 'arrow': Serialize DataFrames using Apache Arrow. Much faster and versatile.
# Default: "arrow"
# dataFrameSerialization = "arrow"


[logger]

# Level of logging: 'error', 'warning', 'info', or 'debug'.
# Default: 'info'
# level = "info"

# 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.
# Default: "%(asctime)s %(message)s"
# messageFormat = "%(asctime)s %(message)s"


[client]

# Whether to enable st.cache.
# Default: true
# caching = true

# If false, makes your Streamlit script not draw to a Streamlit app.
# Default: true
# displayEnabled = true

# Controls whether uncaught app exceptions and deprecation warnings are displayed in the browser. By default, this is set to True and Streamlit displays app exceptions and associated tracebacks, and deprecation warnings, in the browser.
# If set to False, an exception or deprecation warning will result in a generic message being shown in the browser, and exceptions, tracebacks, and deprecation warnings will be printed to the console only.
# Default: true
# showErrorDetails = true

# Change the visibility of items in the toolbar, options menu, and settings dialog (top right of the app).
# Allowed values: * "auto" : Show the developer options if the app is accessed through localhost and hide them otherwise. * "developer" : Show the developer options. * "viewer" : Hide the developer options. * "minimal" : Show only options set externally (e.g. through Streamlit Community Cloud) or through st.set_page_config. If there are no options left, hide the menu.
# Default: "auto"
# toolbarMode = "auto"


[runner]

# Allows you to type a variable or string by itself in a single line of Python code to write it to the app.
# Default: true
# magicEnabled = true

# 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.
# Default: false
# installTracer = false

# Sets the MPLBACKEND environment variable to Agg inside Streamlit to prevent Python crashing.
# Default: true
# fixMatplotlib = true

# 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.
# Default: true
# postScriptGC = true

# Handle script rerun requests immediately, rather than waiting for script execution to reach a yield point. This makes 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.
# Default: true
# fastReruns = true

# Raise an exception after adding unserializable data to Session State. Some execution environments may require serializing all data in Session State, so it may be useful to detect incompatibility during development, or when the execution environment will stop supporting it in the future.
# Default: false
# enforceSerializableSessionState = false


[server]

# List of folders that should not be watched for changes. This impacts both "Run on Save" and @st.cache.
# Relative paths will be taken as relative to the current working directory.
# Example: ['/home/user1/env', 'relative/path/to/folder']
# Default: []
# folderWatchBlacklist = []

# Change the type of file watcher used by Streamlit, or turn it off completely.
# 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.
# Default: "auto"
# fileWatcherType = "auto"

# 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.
# Default: randomly generated secret key.
# cookieSecret = "343e2b37fe423dbc8cc1cb9504fba0a07828e59d4b5e63ff14cd5c530ae2328f"

# If false, will attempt to open a browser window on start.
# Default: false unless (1) we are on a Linux box where DISPLAY is unset, or (2) we are running in the Streamlit Atom plugin.
# headless = false

# Automatically rerun script when the file is modified on disk.
# Default: false
# runOnSave = false

# 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).
# Default: (unset)
# address =

# The port where the server will listen for browser connections.
# Default: 8501
# port = 8501

# The base path for the URL where Streamlit should be served from.
# Default: ""
# baseUrlPath = ""

# Enables support for Cross-Origin Resource Sharing (CORS) protection, for added security.
# 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`.
# Default: true
# enableCORS = true

# Enables support for Cross-Site Request Forgery (XSRF) protection, for added security.
# 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`.
# Default: true
# enableXsrfProtection = true

# Max size, in megabytes, for files uploaded with the file_uploader.
# Default: 200
# maxUploadSize = 200

# Max size, in megabytes, of messages that can be sent via the WebSocket connection.
# Default: 200
# maxMessageSize = 200

# Enables support for websocket compression.
# Default: false
# enableWebsocketCompression = false

# Enable serving files from a `static` directory in the running app's directory.
# Default: false
# enableStaticServing = false

# Server certificate file for connecting via HTTPS. Must be set at the same time as "server.sslKeyFile".
# ['DO NOT USE THIS OPTION IN A PRODUCTION ENVIRONMENT. It has not gone through security audits or performance tests. For the production environment, we recommend performing SSL termination by the load balancer or the reverse proxy.']
# sslCertFile =

# Cryptographic key file for connecting via HTTPS. Must be set at the same time as "server.sslCertFile".
# ['DO NOT USE THIS OPTION IN A PRODUCTION ENVIRONMENT. It has not gone through security audits or performance tests. For the production environment, we recommend performing SSL termination by the load balancer or the reverse proxy.']
# sslKeyFile =


[browser]

# Internet address where users should point their browsers in order to connect to the app. Can be IP address or DNS name and path.
# This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
# Default: "localhost"
# serverAddress = "localhost"

# Whether to send usage statistics to Streamlit.
# Default: true
# gatherUsageStats = true

# Port where users should point their browsers in order to connect to the app.
# This is used to: - Set the correct URL for CORS and XSRF protection purposes. - Show the URL on the terminal - Open the browser
# Default: whatever value is set in server.port.
# serverPort = 8501


[mapbox]

# 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)!
# Default: ""
# token = ""


[deprecation]

# Set to false to disable the deprecation warning for the file uploader encoding.
# Default: true
# showfileUploaderEncoding = true

# Set to false to disable the deprecation warning for using the global pyplot instance.
# Default: true
# showPyplotGlobalUse = true


[theme]

# The preset Streamlit theme that your custom theme inherits from. One of "light" or "dark".
base = "dark"

# Primary accent color for interactive elements.
primaryColor = "#3395f6"

# Background color for the main content area.
# backgroundColor =

# Background color used for the sidebar and most interactive widgets.
# secondaryBackgroundColor =

# Color used for almost all text.
# textColor =

# Font family for all text in the app, except code blocks. One of "sans serif", "serif", or "monospace".
font = "serif"
Binary file added resources/SVCmodel.pkl
Binary file not shown.
Binary file added resources/TechIntelCrop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/TechIntelCrop_o.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/TechIntelCrop_o30.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/bar_cc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions resources/feedback.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"Q1": {"label": "How satisfied are you with this app?", "value": "Very Satisfied"}, "Q2": {"label": "We would love to hear your feedback and suggestions", "value": "My mother doesn't believe in climate change, so sad!"}}
{"Q1": {"label": "How satisfied are you with this app?", "value": "Very Satisfied"}, "Q2": {"label": "We would love to hear your feedback and suggestions", "value": "I love this app"}}
{"Q1": {"label": "How satisfied are you with this app?", "value": "Neutral"}, "Q2": {"label": "We would love to hear your feedback and suggestions", "value": "Needs more colour"}}
{"Q1": {"label": "How satisfied are you with this app?", "value": "Neutral"}, "Q2": {"label": "We would love to hear your feedback and suggestions", "value": "Needs more colour"}}
Binary file added resources/forsvm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/im.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/ml_train.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/pathway.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/sv_m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/team.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/vectorizer.pkl
Binary file not shown.
Binary file added resources/wc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/wc_no.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.