Archisman Karmakar
commited on
Commit
·
b214153
1
Parent(s):
1a2edd4
fix2
Browse files- app_main_hf.py +12 -3
- poetry.lock +34 -1
- pyproject.toml +1 -0
- requirements.txt +1 -0
app_main_hf.py
CHANGED
@@ -2,9 +2,7 @@ from streamlit_extras.bottom_container import bottom
|
|
2 |
from streamlit_extras.app_logo import add_logo
|
3 |
from streamlit_extras.add_vertical_space import add_vertical_space
|
4 |
from streamlit_extras.stylable_container import stylable_container
|
5 |
-
|
6 |
-
from sentiment_analysis.sentiment_analysis_main import show_sentiment_analysis
|
7 |
-
from dashboard import show_dashboard
|
8 |
from imports import *
|
9 |
import streamlit as st
|
10 |
from streamlit_option_menu import option_menu
|
@@ -15,6 +13,12 @@ import shutil
|
|
15 |
import gc
|
16 |
from transformers.utils.hub import TRANSFORMERS_CACHE
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
if sys.platform == "win32":
|
19 |
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
20 |
else:
|
@@ -31,6 +35,11 @@ import importlib.util
|
|
31 |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), )))
|
32 |
|
33 |
|
|
|
|
|
|
|
|
|
|
|
34 |
# from text_transformation import show_text_transformation
|
35 |
|
36 |
st.set_page_config(
|
|
|
2 |
from streamlit_extras.app_logo import add_logo
|
3 |
from streamlit_extras.add_vertical_space import add_vertical_space
|
4 |
from streamlit_extras.stylable_container import stylable_container
|
5 |
+
|
|
|
|
|
6 |
from imports import *
|
7 |
import streamlit as st
|
8 |
from streamlit_option_menu import option_menu
|
|
|
13 |
import gc
|
14 |
from transformers.utils.hub import TRANSFORMERS_CACHE
|
15 |
|
16 |
+
|
17 |
+
try:
|
18 |
+
asyncio.get_running_loop()
|
19 |
+
except RuntimeError:
|
20 |
+
asyncio.run(asyncio.sleep(0))
|
21 |
+
|
22 |
if sys.platform == "win32":
|
23 |
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
|
24 |
else:
|
|
|
35 |
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), )))
|
36 |
|
37 |
|
38 |
+
from emotion_analysis import show_emotion_analysis
|
39 |
+
from sentiment_analysis.sentiment_analysis_main import show_sentiment_analysis
|
40 |
+
from dashboard import show_dashboard
|
41 |
+
|
42 |
+
|
43 |
# from text_transformation import show_text_transformation
|
44 |
|
45 |
st.set_page_config(
|
poetry.lock
CHANGED
@@ -6015,6 +6015,39 @@ typing-extensions = ">=4.10.0"
|
|
6015 |
opt-einsum = ["opt-einsum (>=3.3)"]
|
6016 |
optree = ["optree (>=0.13.0)"]
|
6017 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6018 |
[[package]]
|
6019 |
name = "torchmetrics"
|
6020 |
version = "1.6.3"
|
@@ -6878,4 +6911,4 @@ cffi = ["cffi (>=1.11)"]
|
|
6878 |
[metadata]
|
6879 |
lock-version = "2.1"
|
6880 |
python-versions = ">=3.12"
|
6881 |
-
content-hash = "
|
|
|
6015 |
opt-einsum = ["opt-einsum (>=3.3)"]
|
6016 |
optree = ["optree (>=0.13.0)"]
|
6017 |
|
6018 |
+
[[package]]
|
6019 |
+
name = "torchaudio"
|
6020 |
+
version = "2.6.0"
|
6021 |
+
description = "An audio package for PyTorch"
|
6022 |
+
optional = false
|
6023 |
+
python-versions = "*"
|
6024 |
+
groups = ["main"]
|
6025 |
+
files = [
|
6026 |
+
{file = "torchaudio-2.6.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:0eda1cd876f44fc014dc04aa680db2fa355a83df5d834398db6dd5f5cd911f4c"},
|
6027 |
+
{file = "torchaudio-2.6.0-cp310-cp310-manylinux1_x86_64.whl", hash = "sha256:22798d5d8e37869bd5875d37f42270efbeb8ae94bda97fed40c1c5e0e1c62fa3"},
|
6028 |
+
{file = "torchaudio-2.6.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:9d8e07789452efdb8132d62afe21f2293a72805f26c2891c6c53e4e4df38ddf6"},
|
6029 |
+
{file = "torchaudio-2.6.0-cp310-cp310-win_amd64.whl", hash = "sha256:c6386bfa478afae2137715bb60f35520e3b05f5fc6d3bcc6969cf9cdfb11c09c"},
|
6030 |
+
{file = "torchaudio-2.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:c12fc41241b8dfce3ccc1917f1c81a0f92f532d9917706600046f1eb21d2d765"},
|
6031 |
+
{file = "torchaudio-2.6.0-cp311-cp311-manylinux1_x86_64.whl", hash = "sha256:377b177a3d683a9163e4cab5a06f0346dac9ff96fa527477338fd90fc6a2a4b6"},
|
6032 |
+
{file = "torchaudio-2.6.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:0f0db5c997d031c34066d8be1c0ce7d2a1f2b6c016a92885b20b00bfeb17b753"},
|
6033 |
+
{file = "torchaudio-2.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:52182f6de4e7b342d139e54b703185d428de9cce3c4cf914a9b2ab2359d192a3"},
|
6034 |
+
{file = "torchaudio-2.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:7d0e4b08c42325bf4b887de9a25c44ed882997001740e1bd7d901f65581cf1ab"},
|
6035 |
+
{file = "torchaudio-2.6.0-cp312-cp312-manylinux1_x86_64.whl", hash = "sha256:715aa21f6bdbd085454c313ae3a2c7cc07bf2e8cf05752f819afb5b4c57f4e6f"},
|
6036 |
+
{file = "torchaudio-2.6.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:6291d9507dc1d6b4ffe8843fbfb201e6c8270dd8c42ad70bb76226c0ebdcad56"},
|
6037 |
+
{file = "torchaudio-2.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:86d6239792bf94741a41acd6fe3d549faaf0d50e7275d17d076a190bd007e2f9"},
|
6038 |
+
{file = "torchaudio-2.6.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:66f2e0bd5ab56fd81419d2f5afb74a9a70141688594646441756c8c24f424a73"},
|
6039 |
+
{file = "torchaudio-2.6.0-cp313-cp313-manylinux1_x86_64.whl", hash = "sha256:52f15185349c370fc1faa84e8b8b2782c007472db9d586a16bba314130b322f2"},
|
6040 |
+
{file = "torchaudio-2.6.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:b521ea9618fb4c29a6f8071628170c222291f46a48a3bf424cfeb488f54af714"},
|
6041 |
+
{file = "torchaudio-2.6.0-cp313-cp313-win_amd64.whl", hash = "sha256:393fa74ec40d167f0170728ea21c9b5e0f830648fd02df7db2bf7e62f64245ec"},
|
6042 |
+
{file = "torchaudio-2.6.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:04803a969710bdb77a4ddfdb85a32fa9b9e0310dc91f7eb7e54d6083dd69bfab"},
|
6043 |
+
{file = "torchaudio-2.6.0-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:8c1a4d08e35a9ceaadadbff6e60bcb3442482f800369be350103dfd08b4ddf52"},
|
6044 |
+
{file = "torchaudio-2.6.0-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:72e77055d8e742475c6dfacf59fab09b1fc94d4423e14897e188b67cad3851c6"},
|
6045 |
+
{file = "torchaudio-2.6.0-cp39-cp39-win_amd64.whl", hash = "sha256:d855da878a28c2e5e6fb3d76fcddd544f4d957a320b29602cea5af2fe0ad1f3a"},
|
6046 |
+
]
|
6047 |
+
|
6048 |
+
[package.dependencies]
|
6049 |
+
torch = "2.6.0"
|
6050 |
+
|
6051 |
[[package]]
|
6052 |
name = "torchmetrics"
|
6053 |
version = "1.6.3"
|
|
|
6911 |
[metadata]
|
6912 |
lock-version = "2.1"
|
6913 |
python-versions = ">=3.12"
|
6914 |
+
content-hash = "bd7f2a64af7edde0d80ce7780de0a1160f356e3f0581ff6499d878c2c29c3479"
|
pyproject.toml
CHANGED
@@ -197,6 +197,7 @@ dependencies = [
|
|
197 |
"streamlit-option-menu (>=0.4.0,<0.5.0)",
|
198 |
"streamlit-elements (>=0.1.0,<0.2.0)",
|
199 |
"streamlit-extras (>=0.6.0,<0.7.0)",
|
|
|
200 |
]
|
201 |
|
202 |
|
|
|
197 |
"streamlit-option-menu (>=0.4.0,<0.5.0)",
|
198 |
"streamlit-elements (>=0.1.0,<0.2.0)",
|
199 |
"streamlit-extras (>=0.6.0,<0.7.0)",
|
200 |
+
"torchaudio (>=2.6.0,<3.0.0)",
|
201 |
]
|
202 |
|
203 |
|
requirements.txt
CHANGED
@@ -212,6 +212,7 @@ toml==0.10.2 ; python_version >= "3.12"
|
|
212 |
tomlkit==0.13.2 ; python_version >= "3.12"
|
213 |
toolz==1.0.0 ; python_version >= "3.12"
|
214 |
torch==2.6.0 ; python_version >= "3.12"
|
|
|
215 |
torchmetrics==1.6.3 ; python_version >= "3.12"
|
216 |
torchvision==0.21.0 ; python_version >= "3.12"
|
217 |
tornado==6.4.2 ; python_version >= "3.12"
|
|
|
212 |
tomlkit==0.13.2 ; python_version >= "3.12"
|
213 |
toolz==1.0.0 ; python_version >= "3.12"
|
214 |
torch==2.6.0 ; python_version >= "3.12"
|
215 |
+
torchaudio==2.6.0 ; python_version >= "3.12"
|
216 |
torchmetrics==1.6.3 ; python_version >= "3.12"
|
217 |
torchvision==0.21.0 ; python_version >= "3.12"
|
218 |
tornado==6.4.2 ; python_version >= "3.12"
|