nikesh66 commited on
Commit
5d52eae
Β·
1 Parent(s): e6de13d

Add application file

Browse files
Files changed (1) hide show
  1. homepage.py +119 -0
homepage.py ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Contents of ~/my_app/streamlit_app.py
2
+ import streamlit as st
3
+
4
+ import requests
5
+
6
+ from streamlit_lottie import st_lottie
7
+ from PIL import Image
8
+
9
+ def main_page():
10
+ st.markdown("# Main page 🎈")
11
+ st.sidebar.markdown("# Main page 🎈")
12
+
13
+ def page2():
14
+ st.markdown("# Page 2 ❄️")
15
+ st.sidebar.markdown("# Page 2 ❄️")
16
+
17
+ def page3():
18
+ st.markdown("# Page 3 πŸŽ‰")
19
+ st.sidebar.markdown("# Page 3 πŸŽ‰")
20
+
21
+ page_names_to_funcs = {
22
+ "Main Page": main_page,
23
+ "Page 2": page2,
24
+ "Page 3": page3,
25
+ }
26
+
27
+
28
+ # Find more emojis here: https://www.webfx.com/tools/emoji-cheat-sheet/
29
+ st.set_page_config(page_title="My Webpage", page_icon=":tada:", layout="wide")
30
+
31
+
32
+ def load_lottieurl(url):
33
+ r = requests.get(url)
34
+ if r.status_code != 200:
35
+ return None
36
+ return r.json()
37
+
38
+
39
+ # Use local CSS
40
+ def local_css(file_name):
41
+ with open(file_name) as f:
42
+ st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
43
+
44
+
45
+ local_css("style/style.css")
46
+
47
+ # ---- LOAD ASSETS ----
48
+ lottie_coding = load_lottieurl("https://assets7.lottiefiles.com/packages/lf20_buratoqa.json")
49
+ lottie_image1 = load_lottieurl("https://assets5.lottiefiles.com/packages/lf20_3adn32pc.json")
50
+ lottie_image2_= load_lottieurl("https://assets4.lottiefiles.com/private_files/lf30_gXkjqp.json")
51
+
52
+ # ---- HEADER SECTION ----
53
+ with st.container():
54
+ st.subheader("All In One Content Writing tool :memo:")
55
+ st.title(" :free: Grammar Checker . Paraphraser :symbols:")
56
+ st.write(
57
+ " 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"
58
+ )
59
+
60
+ # ---- What dies the tool do ----
61
+ with st.container():
62
+ st.write("---")
63
+ left_column, right_column = st.columns(2)
64
+ with left_column:
65
+ st.header("How tools work")
66
+ st.write("##")
67
+ st.write(
68
+
69
+ "The grammar checker first analyses the text to be checked for errors."
70
+
71
+ "It then looks for patterns in the text that might indicate an error. "
72
+
73
+ "Finally, it offers suggestions for correcting any detected errors. "
74
+
75
+ "The grammar checker is mainly used by people who are learning English as a second language. "
76
+
77
+ "It can also be used by people who are writing in a formal or academic setting."
78
+
79
+ )
80
+ st.write(" :mortar_board: ")
81
+ with right_column:
82
+ st_lottie(lottie_coding, height=300, key="coding")
83
+
84
+ # ---- PROJECTS ----
85
+ with st.container():
86
+ left_column, right_column = st.columns(2)
87
+ st.write("---")
88
+ st.header("Tools Built")
89
+ st.write("##")
90
+ with left_column:
91
+ st_lottie(lottie_image1, height=300, key="image1")
92
+ with right_column:
93
+
94
+ st.subheader("Grammarly Clone : Gramformer")
95
+ st.write(
96
+ """
97
+ Grammarly is a grammar software that helps you correct your writing errors and make sure your sentences are properly formatted.
98
+ Grammarly Clone is a similar program that allows you to create and edit online documents, including blogs.
99
+ It includes many of the same features as Grammarly, including: spell checker, grammar checking, and auto-correction.
100
+
101
+ """
102
+ )
103
+
104
+
105
+ with st.container():
106
+ left_column, right_column = st.columns(2)
107
+ with left_column:
108
+ st_lottie(lottie_image2_, height=300, key="image2")
109
+ with right_column:
110
+ st.subheader("Word tune clone : Paraphrase")
111
+ st.write(
112
+ """
113
+ A word tune clone is a tool that allows you to create a paraphrase of a text.
114
+
115
+ This can be useful for consolidating ideas, providing clarification, or filling in missing information.
116
+ """
117
+ )
118
+
119
+