Spaces:
No application file
No application file
Add application file
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119# Contents of ~/my_app/streamlit_app.pyimport streamlit as st
import requests
from streamlit_lottie import st_lottiefrom PIL import Image
def main_page(): st.markdown("# Main page π") st.sidebar.markdown("# Main page π")
def page2(): st.markdown("# Page 2 βοΈ") st.sidebar.markdown("# Page 2 βοΈ")
def page3(): st.markdown("# Page 3 π") st.sidebar.markdown("# Page 3 π")
page_names_to_funcs = { "Main Page": main_page, "Page 2": page2, "Page 3": page3,}
# Find more emojis here: https://www.webfx.com/tools/emoji-cheat-sheet/st.set_page_config(page_title="My Webpage", page_icon=":tada:", layout="wide")
def load_lottieurl(url): r = requests.get(url) if r.status_code != 200: return None return r.json()
# Use local CSSdef local_css(file_name): with open(file_name) as f: st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
local_css("style/style.css")
# ---- LOAD ASSETS ----lottie_coding = load_lottieurl("https://assets7.lottiefiles.com/packages/lf20_buratoqa.json")lottie_image1 = load_lottieurl("https://assets5.lottiefiles.com/packages/lf20_3adn32pc.json")lottie_image2_= load_lottieurl("https://assets4.lottiefiles.com/private_files/lf30_gXkjqp.json")
# ---- HEADER SECTION ----with st.container(): st.subheader("All In One Content Writing tool :memo:") st.title(" :free: Grammar Checker . Paraphraser :symbols:") st.write( " Grammar Checker , Paraphraser is a machine learning tool that can be used to paraphrase text. It uses a combination of natural language processing and machine learning algorithms to produce Accurate results" )
# ---- What dies the tool do ----with st.container(): st.write("---") left_column, right_column = st.columns(2) with left_column: st.header("How tools work") st.write("##") st.write( "The grammar checker first analyses the text to be checked for errors."
"It then looks for patterns in the text that might indicate an error. "
"Finally, it offers suggestions for correcting any detected errors. "
"The grammar checker is mainly used by people who are learning English as a second language. "
"It can also be used by people who are writing in a formal or academic setting."
) st.write(" :mortar_board: ") with right_column: st_lottie(lottie_coding, height=300, key="coding")
# ---- PROJECTS ----with st.container(): left_column, right_column = st.columns(2) st.write("---") st.header("Tools Built") st.write("##") with left_column: st_lottie(lottie_image1, height=300, key="image1") with right_column:
st.subheader("Grammarly Clone : Gramformer") st.write( """ Grammarly is a grammar software that helps you correct your writing errors and make sure your sentences are properly formatted. Grammarly Clone is a similar program that allows you to create and edit online documents, including blogs. It includes many of the same features as Grammarly, including: spell checker, grammar checking, and auto-correction.
""" ) with st.container(): left_column, right_column = st.columns(2) with left_column: st_lottie(lottie_image2_, height=300, key="image2") with right_column: st.subheader("Word tune clone : Paraphrase") st.write( """ A word tune clone is a tool that allows you to create a paraphrase of a text. This can be useful for consolidating ideas, providing clarification, or filling in missing information. """ )
homepage.pyAdded+119