davidlee1102 commited on
Commit
c23c5f8
1 Parent(s): d35f33e
Files changed (2) hide show
  1. app.py +10 -3
  2. requirements.txt +211 -0
app.py CHANGED
@@ -1,8 +1,15 @@
1
  import streamlit as st
2
 
 
 
3
  name = st.text_input("Enter your sentence here")
4
 
5
- if(st.button('Submit')):
6
  result = name.title()
7
- result_check = "Thanh cong"
8
- st.success(result_check)
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ from emotion_model import emotion_predict
4
+
5
  name = st.text_input("Enter your sentence here")
6
 
7
+ if (st.button('Submit')):
8
  result = name.title()
9
+ a = "Hi, this is morning bro, happy to see you"
10
+ # try:
11
+ # result_check = emotion_predict(a)
12
+ # except Exception as E:
13
+ # result_check = "Error"
14
+ # print(E)
15
+ st.success(a)
requirements.txt ADDED
@@ -0,0 +1,211 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ pip==23.0.1
2
+ absl-py==1.4.0
3
+ altair==4.1.0
4
+ anyascii==0.3.2
5
+ anyio==3.6.2
6
+ appnope==0.1.3
7
+ argon2-cffi==21.3.0
8
+ argon2-cffi-bindings==21.2.0
9
+ arrow==1.2.3
10
+ astor==0.8.1
11
+ asttokens==2.2.1
12
+ astunparse==1.6.3
13
+ attrs==22.2.0
14
+ autograd==1.5
15
+ autograd-gamma==0.5.0
16
+ backcall==0.2.0
17
+ beautifulsoup4==4.11.2
18
+ bleach==6.0.0
19
+ blinker==1.4
20
+ blis==0.7.9
21
+ Bottleneck==1.3.5
22
+ brotlipy==0.7.0
23
+ cachetools==4.2.2
24
+ catalogue==2.0.8
25
+ certifi==2022.12.7
26
+ cffi==1.15.1
27
+ chardet==5.1.0
28
+ charset-normalizer==3.0.1
29
+ click==8.0.4
30
+ comm==0.1.2
31
+ commonmark==0.9.1
32
+ confection==0.0.4
33
+ contourpy==1.0.7
34
+ contractions==0.1.73
35
+ cryptography==39.0.1
36
+ cycler==0.11.0
37
+ cymem==2.0.7
38
+ debugpy==1.6.6
39
+ decorator==5.1.1
40
+ defusedxml==0.7.1
41
+ ecos==2.0.12
42
+ entrypoints==0.4
43
+ executing==1.2.0
44
+ fastjsonschema==2.16.3
45
+ filelock==3.10.7
46
+ flatbuffers==23.3.3
47
+ flit_core==3.8.0
48
+ fonttools==4.38.0
49
+ formulaic==0.5.2
50
+ fqdn==1.5.1
51
+ future==0.18.3
52
+ gast==0.4.0
53
+ gitdb==4.0.7
54
+ GitPython==3.1.30
55
+ google-auth==2.17.1
56
+ google-auth-oauthlib==1.0.0
57
+ google-pasta==0.2.0
58
+ grpcio==1.53.0
59
+ h5py==3.8.0
60
+ huggingface-hub==0.13.3
61
+ idna==3.4
62
+ importlib-metadata==6.0.0
63
+ importlib-resources==5.12.0
64
+ interface-meta==1.3.0
65
+ ipykernel==6.21.2
66
+ ipython==8.11.0
67
+ ipython-genutils==0.2.0
68
+ ipywidgets==8.0.4
69
+ isoduration==20.11.0
70
+ jax==0.4.8
71
+ jedi==0.18.2
72
+ Jinja2==3.1.2
73
+ joblib==1.2.0
74
+ jsonpointer==2.3
75
+ jsonschema==4.17.3
76
+ jupyter==1.0.0
77
+ jupyter_client==8.1.0
78
+ jupyter-console==6.6.2
79
+ jupyter_core==5.3.0
80
+ jupyter-events==0.6.3
81
+ jupyter_server==2.3.0
82
+ jupyter_server_terminals==0.4.4
83
+ jupyterlab-pygments==0.2.2
84
+ jupyterlab-widgets==3.0.5
85
+ keras==2.12.0
86
+ Keras-Preprocessing==1.1.2
87
+ kiwisolver==1.4.4
88
+ langcodes==3.3.0
89
+ libclang==16.0.0
90
+ lifelines==0.27.4
91
+ Markdown==3.4.3
92
+ MarkupSafe==2.1.2
93
+ matplotlib==3.7.0
94
+ matplotlib-inline==0.1.6
95
+ mistune==2.0.5
96
+ mkl-fft==1.3.1
97
+ mkl-random==1.2.2
98
+ mkl-service==2.4.0
99
+ ml-dtypes==0.0.4
100
+ murmurhash==1.0.9
101
+ nbclassic==0.5.2
102
+ nbclient==0.7.2
103
+ nbconvert==7.2.9
104
+ nbformat==5.7.3
105
+ nest-asyncio==1.5.6
106
+ nltk==3.8.1
107
+ notebook==6.5.2
108
+ notebook_shim==0.2.2
109
+ numexpr==2.8.4
110
+ numpy
111
+ oauthlib==3.2.2
112
+ opt-einsum==3.3.0
113
+ osqp==0.6.2.post8
114
+ packaging==23.0
115
+ pandas==1.5.3
116
+ pandocfilters==1.5.0
117
+ parso==0.8.3
118
+ pathy==0.10.1
119
+ pexpect==4.8.0
120
+ pickleshare==0.7.5
121
+ Pillow==9.4.0
122
+ platformdirs==3.0.0
123
+ preshed==3.0.8
124
+ prometheus-client==0.16.0
125
+ prompt-toolkit==3.0.38
126
+ protobuf==3.20.3
127
+ psutil==5.9.4
128
+ ptyprocess==0.7.0
129
+ pure-eval==0.2.2
130
+ pyahocorasick==2.0.0
131
+ pyarrow==10.0.1
132
+ pyasn1==0.4.8
133
+ pyasn1-modules==0.2.8
134
+ pycparser==2.21
135
+ pydantic==1.10.7
136
+ pydeck==0.7.1
137
+ Pygments==2.14.0
138
+ Pympler==0.9
139
+ pyOpenSSL==23.0.0
140
+ pyparsing==3.0.9
141
+ pyrsistent==0.19.3
142
+ PySocks==1.7.1
143
+ python-dateutil==2.8.2
144
+ python-json-logger==2.0.7
145
+ pytz==2022.7.1
146
+ PyYAML==6.0
147
+ pyzmq==25.0.0
148
+ qdldl==0.1.5.post3
149
+ qtconsole==5.4.0
150
+ QtPy==2.3.0
151
+ regex==2023.3.23
152
+ requests==2.28.2
153
+ requests-oauthlib==1.3.1
154
+ rfc3339-validator==0.1.4
155
+ rfc3986-validator==0.1.1
156
+ rich==12.5.1
157
+ rsa==4.9
158
+ scikit-learn==1.1.3
159
+ scikit-survival==0.19.0.post1
160
+ scipy==1.10.1
161
+ semver==2.13.0
162
+ Send2Trash==1.8.0
163
+ setuptools==65.6.3
164
+ six==1.16.0
165
+ smart-open==6.3.0
166
+ smmap==4.0.0
167
+ sniffio==1.3.0
168
+ soupsieve==2.4
169
+ spacy==3.5.1
170
+ spacy-legacy==3.0.12
171
+ spacy-loggers==1.0.4
172
+ srsly==2.4.6
173
+ stack-data==0.6.2
174
+ streamlit==1.16.0
175
+ tensorboard==2.12.1
176
+ tensorboard-data-server==0.7.0
177
+ tensorboard-plugin-wit==1.8.1
178
+ tensorflow==2.12.0
179
+ tensorflow-addons==0.19.0
180
+ tensorflow-estimator==2.12.0
181
+ tensorflow-io-gcs-filesystem==0.32.0
182
+ termcolor==2.2.0
183
+ terminado==0.17.1
184
+ textsearch==0.0.24
185
+ thinc==8.1.9
186
+ threadpoolctl==3.1.0
187
+ tinycss2==1.2.1
188
+ toml==0.10.2
189
+ toolz==0.12.0
190
+ torch==1.13.1
191
+ torchvision==0.14.1
192
+ tornado==6.2
193
+ tqdm==4.64.1
194
+ traitlets==5.9.0
195
+ typeguard==3.0.2
196
+ typer==0.7.0
197
+ typing_extensions==4.5.0
198
+ tzlocal==2.1
199
+ uri-template==1.2.0
200
+ urllib3==1.26.15
201
+ validators==0.18.2
202
+ wasabi==1.1.1
203
+ wcwidth==0.2.6
204
+ webcolors==1.12
205
+ webencodings==0.5.1
206
+ websocket-client==1.5.1
207
+ Werkzeug==2.2.3
208
+ wheel==0.38.4
209
+ widgetsnbextension==4.0.5
210
+ wrapt==1.14.1
211
+ zipp==3.15.0