Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Added our team's pickled best performing model and vectoriser #63

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
26 changes: 24 additions & 2 deletions base_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@
"""
# Streamlit dependencies
import streamlit as st
from streamlit_option_menu import option_menu
import joblib,os
import scipy
from PIL import Image

# Data dependencies
import pandas as pd
Expand All @@ -35,14 +38,33 @@
# Load your raw data
raw = pd.read_csv("resources/train.csv")

selected = option_menu(
menu_title=None, # required
options=["Home", "Contact"], # required
icons=["house", "book", "envelope"], # optional
menu_icon="cast", # optional
default_index=0, # optional
orientation="horizontal",
)
if selected == "Home":
st.title(f"Amped Solutions Tweet Classifer")
if selected == "Contact":
st.title("Contact Us")
name = st.text_input("Name")
email = st.text_input("Email")
message = st.text_area("Message")
if st.button("Submit"):
# Add code here to submit the form and send the message
st.success("Thank you for your message!")

# The main function where we will build the actual app
def main():
"""Tweet Classifier App with Streamlit """

# Creates a main title and subheader on your page -
# these are static across all pages
st.title("Tweet Classifer")
st.subheader("Climate change tweet classification")
# st.title("Amped Solutions Tweet Classifer")
# st.subheader("Climate change tweet classification")

# Creating sidebar with selection box -
# you can create multiple pages this way
Expand Down
Binary file added resources/SVC_model.pkl
Binary file not shown.
Binary file removed resources/imgs/EDSA_logo.png
Binary file not shown.
Binary file removed resources/imgs/fork-repo.png
Binary file not shown.
Binary file added resources/imgs/image-removebg-preview.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 removed resources/imgs/streamlit-base-splash-screen.png
Binary file not shown.
Binary file removed resources/imgs/streamlit-logo.png
Binary file not shown.
Binary file removed resources/imgs/streamlit.png
Binary file not shown.
Binary file removed resources/imgs/what-is-streamlit.png
Binary file not shown.
Binary file added resources/vectoriser.pkl
Binary file not shown.