Spaces:
Runtime error
Runtime error
Commit
·
9c923b0
1
Parent(s):
18b1844
update requirements.txt
Browse files- app.py +3 -1
- requirements.txt +27 -0
app.py
CHANGED
@@ -101,8 +101,10 @@ def main() -> None:
|
|
101 |
# with st.spinner("Summarizing in progress..."):
|
102 |
# return tuple(summarizer.abstractive_summary(list(summary_sentence)))
|
103 |
|
|
|
|
|
104 |
if summarize_button:
|
105 |
-
summary =
|
106 |
st.markdown(summary)
|
107 |
|
108 |
|
|
|
101 |
# with st.spinner("Summarizing in progress..."):
|
102 |
# return tuple(summarizer.abstractive_summary(list(summary_sentence)))
|
103 |
|
104 |
+
pipe = create_pipeline()
|
105 |
+
|
106 |
if summarize_button:
|
107 |
+
summary = pipe(target_text_input)
|
108 |
st.markdown(summary)
|
109 |
|
110 |
|
requirements.txt
CHANGED
@@ -1,29 +1,50 @@
|
|
1 |
altair==4.2.0
|
|
|
|
|
2 |
attrs==22.1.0
|
|
|
3 |
blinker==1.5
|
4 |
cachetools==5.2.0
|
5 |
certifi==2022.6.15
|
6 |
charset-normalizer==2.1.1
|
7 |
click==8.1.3
|
8 |
commonmark==0.9.1
|
|
|
9 |
decorator==5.1.1
|
10 |
entrypoints==0.4
|
|
|
11 |
filelock==3.8.0
|
12 |
gitdb==4.0.9
|
13 |
GitPython==3.1.27
|
14 |
huggingface-hub==0.9.1
|
15 |
idna==3.3
|
16 |
importlib-metadata==4.12.0
|
|
|
|
|
|
|
|
|
17 |
Jinja2==3.1.2
|
18 |
joblib==1.1.0
|
19 |
jsonschema==4.14.0
|
|
|
|
|
|
|
20 |
MarkupSafe==2.1.1
|
|
|
|
|
21 |
nltk==3.7
|
22 |
numpy==1.23.2
|
23 |
packaging==21.3
|
24 |
pandas==1.4.3
|
|
|
|
|
|
|
25 |
Pillow==9.2.0
|
|
|
26 |
protobuf==3.20.1
|
|
|
|
|
|
|
27 |
pyarrow==9.0.0
|
28 |
pydeck==0.7.1
|
29 |
Pygments==2.13.0
|
@@ -34,22 +55,28 @@ python-dateutil==2.8.2
|
|
34 |
pytz==2022.2.1
|
35 |
pytz-deprecation-shim==0.1.0.post0
|
36 |
PyYAML==6.0
|
|
|
37 |
regex==2022.8.17
|
38 |
requests==2.28.1
|
39 |
rich==12.5.1
|
40 |
semver==2.13.0
|
41 |
six==1.16.0
|
42 |
smmap==5.0.0
|
|
|
43 |
streamlit==1.12.2
|
44 |
tokenizers==0.12.1
|
45 |
toml==0.10.2
|
46 |
toolz==0.12.0
|
|
|
47 |
tornado==6.2
|
48 |
tqdm==4.64.0
|
|
|
49 |
transformers==4.21.2
|
50 |
typing_extensions==4.3.0
|
51 |
tzdata==2022.2
|
52 |
tzlocal==4.2
|
53 |
urllib3==1.26.12
|
54 |
validators==0.20.0
|
|
|
|
|
55 |
zipp==3.8.1
|
|
|
1 |
altair==4.2.0
|
2 |
+
appnope==0.1.3
|
3 |
+
asttokens==2.0.8
|
4 |
attrs==22.1.0
|
5 |
+
backcall==0.2.0
|
6 |
blinker==1.5
|
7 |
cachetools==5.2.0
|
8 |
certifi==2022.6.15
|
9 |
charset-normalizer==2.1.1
|
10 |
click==8.1.3
|
11 |
commonmark==0.9.1
|
12 |
+
debugpy==1.6.3
|
13 |
decorator==5.1.1
|
14 |
entrypoints==0.4
|
15 |
+
executing==0.10.0
|
16 |
filelock==3.8.0
|
17 |
gitdb==4.0.9
|
18 |
GitPython==3.1.27
|
19 |
huggingface-hub==0.9.1
|
20 |
idna==3.3
|
21 |
importlib-metadata==4.12.0
|
22 |
+
ipykernel==6.15.1
|
23 |
+
ipython==8.4.0
|
24 |
+
ipywidgets==8.0.1
|
25 |
+
jedi==0.18.1
|
26 |
Jinja2==3.1.2
|
27 |
joblib==1.1.0
|
28 |
jsonschema==4.14.0
|
29 |
+
jupyter-core==4.11.1
|
30 |
+
jupyter_client==7.3.5
|
31 |
+
jupyterlab-widgets==3.0.2
|
32 |
MarkupSafe==2.1.1
|
33 |
+
matplotlib-inline==0.1.6
|
34 |
+
nest-asyncio==1.5.5
|
35 |
nltk==3.7
|
36 |
numpy==1.23.2
|
37 |
packaging==21.3
|
38 |
pandas==1.4.3
|
39 |
+
parso==0.8.3
|
40 |
+
pexpect==4.8.0
|
41 |
+
pickleshare==0.7.5
|
42 |
Pillow==9.2.0
|
43 |
+
prompt-toolkit==3.0.30
|
44 |
protobuf==3.20.1
|
45 |
+
psutil==5.9.1
|
46 |
+
ptyprocess==0.7.0
|
47 |
+
pure-eval==0.2.2
|
48 |
pyarrow==9.0.0
|
49 |
pydeck==0.7.1
|
50 |
Pygments==2.13.0
|
|
|
55 |
pytz==2022.2.1
|
56 |
pytz-deprecation-shim==0.1.0.post0
|
57 |
PyYAML==6.0
|
58 |
+
pyzmq==23.2.1
|
59 |
regex==2022.8.17
|
60 |
requests==2.28.1
|
61 |
rich==12.5.1
|
62 |
semver==2.13.0
|
63 |
six==1.16.0
|
64 |
smmap==5.0.0
|
65 |
+
stack-data==0.5.0
|
66 |
streamlit==1.12.2
|
67 |
tokenizers==0.12.1
|
68 |
toml==0.10.2
|
69 |
toolz==0.12.0
|
70 |
+
torch==1.12.1
|
71 |
tornado==6.2
|
72 |
tqdm==4.64.0
|
73 |
+
traitlets==5.3.0
|
74 |
transformers==4.21.2
|
75 |
typing_extensions==4.3.0
|
76 |
tzdata==2022.2
|
77 |
tzlocal==4.2
|
78 |
urllib3==1.26.12
|
79 |
validators==0.20.0
|
80 |
+
wcwidth==0.2.5
|
81 |
+
widgetsnbextension==4.0.2
|
82 |
zipp==3.8.1
|