Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/autosummproject/autosumm into main
Browse files- app.py +5 -0
- requirements.txt +11 -140
app.py
CHANGED
|
@@ -4,6 +4,11 @@ from summarizer import summarize
|
|
| 4 |
import time
|
| 5 |
import cProfile
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# TODO: translation
|
| 8 |
|
| 9 |
def main():
|
|
|
|
| 4 |
import time
|
| 5 |
import cProfile
|
| 6 |
|
| 7 |
+
# Dowload required NLTK resources
|
| 8 |
+
from nltk import download
|
| 9 |
+
download('punkt')
|
| 10 |
+
download('stopwords')
|
| 11 |
+
|
| 12 |
# TODO: translation
|
| 13 |
|
| 14 |
def main():
|
requirements.txt
CHANGED
|
@@ -1,140 +1,11 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
blinker==1.4
|
| 13 |
-
blis @ file:///home/conda/feedstock_root/build_artifacts/cython-blis_1607338152218/work
|
| 14 |
-
boto3 @ file:///home/conda/feedstock_root/build_artifacts/boto3_1633765668486/work
|
| 15 |
-
botocore @ file:///home/conda/feedstock_root/build_artifacts/botocore_1633987764519/work
|
| 16 |
-
brotlipy==0.7.0
|
| 17 |
-
cachetools @ file:///home/conda/feedstock_root/build_artifacts/cachetools_1633010882559/work
|
| 18 |
-
catalogue @ file:///home/conda/feedstock_root/build_artifacts/catalogue_1632148432306/work
|
| 19 |
-
certifi==2021.10.8
|
| 20 |
-
cffi @ file:///home/conda/feedstock_root/build_artifacts/cffi_1631636250774/work
|
| 21 |
-
charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1632423846401/work
|
| 22 |
-
click==7.1.2
|
| 23 |
-
colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1602866480661/work
|
| 24 |
-
cryptography @ file:///tmp/build/80754af9/cryptography_1633520369886/work
|
| 25 |
-
cupy @ file:///home/conda/feedstock_root/build_artifacts/cupy_1633141077366/work
|
| 26 |
-
cymem @ file:///home/conda/feedstock_root/build_artifacts/cymem_1625012218510/work
|
| 27 |
-
dataclasses @ file:///home/conda/feedstock_root/build_artifacts/dataclasses_1628958434797/work
|
| 28 |
-
debugpy @ file:///home/conda/feedstock_root/build_artifacts/debugpy_1627074853231/work
|
| 29 |
-
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1631346842025/work
|
| 30 |
-
defusedxml @ file:///home/conda/feedstock_root/build_artifacts/defusedxml_1615232257335/work
|
| 31 |
-
en-core-web-sm @ https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.1.0/en_core_web_sm-3.1.0-py3-none-any.whl
|
| 32 |
-
entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1605121927639/work/dist/entrypoints-0.3-py2.py3-none-any.whl
|
| 33 |
-
fastrlock==0.6
|
| 34 |
-
filelock @ file:///home/conda/feedstock_root/build_artifacts/filelock_1633273934192/work
|
| 35 |
-
gitdb @ file:///tmp/build/80754af9/gitdb_1617117951232/work
|
| 36 |
-
GitPython @ file:///home/conda/feedstock_root/build_artifacts/gitpython_1632423794953/work
|
| 37 |
-
huggingface-hub @ file:///home/conda/feedstock_root/build_artifacts/huggingface_hub_1633615623676/work
|
| 38 |
-
idna @ file:///tmp/build/80754af9/idna_1622654382723/work
|
| 39 |
-
importlib-metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1630267473458/work
|
| 40 |
-
inflect @ file:///home/conda/feedstock_root/build_artifacts/inflect_1635835916074/work
|
| 41 |
-
ipykernel @ file:///home/conda/feedstock_root/build_artifacts/ipykernel_1631291098355/work/dist/ipykernel-6.4.1-py3-none-any.whl
|
| 42 |
-
ipython @ file:///home/conda/feedstock_root/build_artifacts/ipython_1632763773116/work
|
| 43 |
-
ipython-genutils==0.2.0
|
| 44 |
-
ipywidgets @ file:///home/conda/feedstock_root/build_artifacts/ipywidgets_1631590360471/work
|
| 45 |
-
jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1610146787869/work
|
| 46 |
-
Jinja2 @ file:///home/conda/feedstock_root/build_artifacts/jinja2_1633656206378/work
|
| 47 |
-
jmespath @ file:///home/conda/feedstock_root/build_artifacts/jmespath_1589369830981/work
|
| 48 |
-
joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1633637554808/work
|
| 49 |
-
jsonschema @ file:///home/conda/feedstock_root/build_artifacts/jsonschema_1633875207482/work
|
| 50 |
-
jupyter-client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1633454794268/work
|
| 51 |
-
jupyter-core @ file:///home/conda/feedstock_root/build_artifacts/jupyter_core_1631852705892/work
|
| 52 |
-
jupyterlab-pygments @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_pygments_1601375948261/work
|
| 53 |
-
jupyterlab-widgets @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_widgets_1631590465624/work
|
| 54 |
-
MarkupSafe @ file:///home/conda/feedstock_root/build_artifacts/markupsafe_1621455668600/work
|
| 55 |
-
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1631080358261/work
|
| 56 |
-
mistune @ file:///home/conda/feedstock_root/build_artifacts/mistune_1624941317779/work
|
| 57 |
-
mkl-fft==1.3.0
|
| 58 |
-
mkl-random==1.2.2
|
| 59 |
-
mkl-service==2.4.0
|
| 60 |
-
murmurhash @ file:///home/conda/feedstock_root/build_artifacts/murmurhash_1607334222000/work
|
| 61 |
-
nbclient @ file:///home/conda/feedstock_root/build_artifacts/nbclient_1629120697898/work
|
| 62 |
-
nbconvert @ file:///home/conda/feedstock_root/build_artifacts/nbconvert_1632535927841/work
|
| 63 |
-
nbformat @ file:///home/conda/feedstock_root/build_artifacts/nbformat_1617383142101/work
|
| 64 |
-
nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1617163391303/work
|
| 65 |
-
nltk @ file:///home/conda/feedstock_root/build_artifacts/nltk_1633093058893/work
|
| 66 |
-
nmslib==2.0.16
|
| 67 |
-
notebook @ file:///home/conda/feedstock_root/build_artifacts/notebook_1631733685426/work
|
| 68 |
-
numpy @ file:///home/conda/feedstock_root/build_artifacts/numpy_1629092040774/work
|
| 69 |
-
olefile @ file:///home/conda/feedstock_root/build_artifacts/olefile_1602866521163/work
|
| 70 |
-
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1625323647219/work
|
| 71 |
-
pandas==1.2.5
|
| 72 |
-
pandocfilters @ file:///home/conda/feedstock_root/build_artifacts/pandocfilters_1631603243851/work
|
| 73 |
-
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1617148930513/work
|
| 74 |
-
pathy @ file:///home/conda/feedstock_root/build_artifacts/pathy_1624897245984/work
|
| 75 |
-
pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1602535608087/work
|
| 76 |
-
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
|
| 77 |
-
Pillow @ file:///tmp/build/80754af9/pillow_1625655408865/work
|
| 78 |
-
preshed @ file:///home/conda/feedstock_root/build_artifacts/preshed_1625048866397/work
|
| 79 |
-
prometheus-client @ file:///home/conda/feedstock_root/build_artifacts/prometheus_client_1622586138406/work
|
| 80 |
-
prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1629903925368/work
|
| 81 |
-
protobuf==3.17.2
|
| 82 |
-
ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl
|
| 83 |
-
pyarrow==3.0.0
|
| 84 |
-
pybind11 @ file:///home/conda/feedstock_root/build_artifacts/pybind11-split_1633408728392/work
|
| 85 |
-
pybind11-global @ file:///home/conda/feedstock_root/build_artifacts/pybind11-split_1633408728392/work
|
| 86 |
-
pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1593275161868/work
|
| 87 |
-
pydantic @ file:///home/conda/feedstock_root/build_artifacts/pydantic_1620819959703/work
|
| 88 |
-
pydeck @ file:///home/conda/feedstock_root/build_artifacts/pydeck_1630093567483/work
|
| 89 |
-
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1629119114968/work
|
| 90 |
-
pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1633192417276/work
|
| 91 |
-
pyparsing==2.4.7
|
| 92 |
-
pyrsistent @ file:///tmp/build/80754af9/pyrsistent_1625052304482/work
|
| 93 |
-
PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1610291451001/work
|
| 94 |
-
python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work
|
| 95 |
-
python-dotenv @ file:///home/conda/feedstock_root/build_artifacts/python-dotenv_1633777049699/work
|
| 96 |
-
pytz @ file:///home/conda/feedstock_root/build_artifacts/pytz_1633452062248/work
|
| 97 |
-
PyYAML==5.4.1
|
| 98 |
-
pyzmq @ file:///home/conda/feedstock_root/build_artifacts/pyzmq_1631793304627/work
|
| 99 |
-
regex @ file:///home/conda/feedstock_root/build_artifacts/regex_1633750069182/work
|
| 100 |
-
requests @ file:///tmp/build/80754af9/requests_1629994808627/work
|
| 101 |
-
s3transfer @ file:///home/conda/feedstock_root/build_artifacts/s3transfer_1626384238958/work
|
| 102 |
-
sacremoses @ file:///home/conda/feedstock_root/build_artifacts/sacremoses_1588857588528/work
|
| 103 |
-
scikit-learn @ file:///tmp/build/80754af9/scikit-learn_1621370406642/work
|
| 104 |
-
scipy @ file:///tmp/build/80754af9/scipy_1630606796912/work
|
| 105 |
-
Send2Trash @ file:///home/conda/feedstock_root/build_artifacts/send2trash_1628511208346/work
|
| 106 |
-
sentence-transformers @ file:///home/conda/feedstock_root/build_artifacts/sentence-transformers_1626294390713/work
|
| 107 |
-
shellingham @ file:///home/conda/feedstock_root/build_artifacts/shellingham_1612179560728/work
|
| 108 |
-
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
|
| 109 |
-
smart-open @ file:///home/conda/feedstock_root/build_artifacts/smart_open_1630238320325/work
|
| 110 |
-
smmap @ file:///home/conda/feedstock_root/build_artifacts/smmap_1612632339838/work
|
| 111 |
-
soupsieve @ file:///tmp/build/80754af9/soupsieve_1616183228191/work
|
| 112 |
-
spacy @ file:///home/conda/feedstock_root/build_artifacts/spacy_1632244522110/work
|
| 113 |
-
spacy-legacy @ file:///home/conda/feedstock_root/build_artifacts/spacy-legacy_1625687473390/work
|
| 114 |
-
srsly @ file:///home/conda/feedstock_root/build_artifacts/srsly_1618231647618/work
|
| 115 |
-
streamlit @ file:///home/conda/feedstock_root/build_artifacts/streamlit_1633453177811/work
|
| 116 |
-
terminado @ file:///home/conda/feedstock_root/build_artifacts/terminado_1631128166466/work
|
| 117 |
-
testpath @ file:///home/conda/feedstock_root/build_artifacts/testpath_1621261527237/work
|
| 118 |
-
thinc @ file:///home/conda/feedstock_root/build_artifacts/thinc_1632600737641/work
|
| 119 |
-
threadpoolctl @ file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1633102299089/work
|
| 120 |
-
tokenizers @ file:///home/conda/feedstock_root/build_artifacts/tokenizers_1632285667965/work
|
| 121 |
-
toml @ file:///home/conda/feedstock_root/build_artifacts/toml_1604308577558/work
|
| 122 |
-
toolz @ file:///home/conda/feedstock_root/build_artifacts/toolz_1600973991856/work
|
| 123 |
-
torch==1.9.1
|
| 124 |
-
torchaudio==0.9.0a0+a85b239
|
| 125 |
-
torchvision==0.10.1
|
| 126 |
-
tornado @ file:///home/conda/feedstock_root/build_artifacts/tornado_1610094708661/work
|
| 127 |
-
tqdm @ file:///home/conda/feedstock_root/build_artifacts/tqdm_1632160078689/work
|
| 128 |
-
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1630423529112/work
|
| 129 |
-
transformers @ file:///home/conda/feedstock_root/build_artifacts/transformers_1633051764196/work
|
| 130 |
-
typer @ file:///home/conda/feedstock_root/build_artifacts/typer_1630326630489/work
|
| 131 |
-
typing-extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1632313171031/work
|
| 132 |
-
tzlocal @ file:///home/conda/feedstock_root/build_artifacts/tzlocal_1629721600364/work
|
| 133 |
-
urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1632350318291/work
|
| 134 |
-
validators @ file:///home/conda/feedstock_root/build_artifacts/validators_1608296160673/work
|
| 135 |
-
wasabi @ file:///home/conda/feedstock_root/build_artifacts/wasabi_1612156086016/work
|
| 136 |
-
watchdog @ file:///home/conda/feedstock_root/build_artifacts/watchdog_1633154568778/work
|
| 137 |
-
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1600965781394/work
|
| 138 |
-
webencodings==0.5.1
|
| 139 |
-
widgetsnbextension @ file:///home/conda/feedstock_root/build_artifacts/widgetsnbextension_1605475529901/work
|
| 140 |
-
zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1633302054558/work
|
|
|
|
| 1 |
+
streamlit
|
| 2 |
+
numpy
|
| 3 |
+
pandas
|
| 4 |
+
torch
|
| 5 |
+
transformers
|
| 6 |
+
sentence_transformers
|
| 7 |
+
nmslib
|
| 8 |
+
nltk
|
| 9 |
+
beautifulsoup4
|
| 10 |
+
python-dotenv
|
| 11 |
+
inflect
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|