-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathNLPJenny.py
79 lines (53 loc) · 2.19 KB
/
NLPJenny.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
"""Main module for the streamlit NLPJenny app"""
import streamlit as st
import pages.home
import pages.basicNLP
#import pages.captionGenerator
import pages.nertm
import pages.machineTranlation
import pages.textSummarization
PAGES = {
"Home": pages.home,
"Basic NLP": pages.basicNLP,
"NER and Topic Modelling": pages.nertm,
"Text Summarization": pages.textSummarization,
"Machine Translation": pages.machineTranlation
#"Caption Generator": pages.captionGenerator
}
def main():
st.sidebar.title("NLPJenny")
st.sidebar.text("Natural Language Processing On the Go")
st.sidebar.title("Navigation")
page = st.sidebar.radio("Go to", list(PAGES.keys()))
#PAGES[page].main()
with st.spinner(f"Loading {page} ..."):
PAGES[page].main()
st.sidebar.title("About App")
st.sidebar.info(
"""
This App uses State of the Art free tier API's from different paltforms
like IBM,Google Cloud and libraries like Spacy,Genism, NLTK and Textblob etc.
It uses Streamlit for implemention of beatiful and easy web app.
"""
)
st.sidebar.title("Contact Developer")
st.sidebar.info(
"""
This app is develop by Aryan. You can contact me at
[aryan chaudhary](https://aryanc55.github.io).
"""
)
#st.sidebar.markdown("[![Github](https://github.com/aryanc55/NLPJenny/blob/master/assests/github.png?raw=true)](https://github/aryanc55)")
st.sidebar.markdown(""" [Github](https://github.com/aryanc55)""") #change all thses three to to iamge
st.sidebar.markdown(""" [Twitter](https://twitter.com/aryanc55)""")
st.sidebar.markdown(""" [Medium](https://medium.com/@aryanc55)""")
st.sidebar.title("Souce Code")
st.sidebar.info(
"This an free to use template repository and you are very welcome to **contribute** your awesome "
"comments, questions, resources and apps as "
"[issues](https://github.com/aryanc55/NLPJenny/issues) of or "
"[pull requests](https://github.com/aryanc55/NLPJenny/pulls) "
"to the [source code](https://github.com/aryanc55/NLPJenny). "
)
if __name__ == "__main__":
main()