Spaces:
Build error
Build error
Вторая попытка.
Browse files- app.py +9 -4
- requirements.txt +4 -0
app.py
CHANGED
@@ -1,12 +1,17 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
st.markdown("### TL;DR: give me the keywords!
|
4 |
-
|
|
|
|
|
|
|
5 |
|
6 |
from transformers import pipeline
|
7 |
|
8 |
pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
-
st.markdown(f"{pipe(text)}")
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
st.markdown("""### TL;DR: give me the keywords!
|
4 |
+
Here you can get the keywords and topic of the article based on it's title or abstract.""")
|
5 |
+
|
6 |
+
st.markdown("<p style="text-align:center"><img width=200px src='https://c.tenor.com/IKt-6tAk9CUAAAAd/thats-a-lot-of-words-lots-of-words.gif'></p>", unsafe_allow_html=True)
|
7 |
+
|
8 |
|
9 |
from transformers import pipeline
|
10 |
|
11 |
pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|
12 |
|
13 |
+
#st.markdown("#### Title:")
|
14 |
+
title = st.text_area("Title:")
|
15 |
+
abstract = st.text_area("abstract:")
|
16 |
|
17 |
+
#st.markdown(f"{pipe(text)}")
|
requirements.txt
CHANGED
@@ -1,3 +1,7 @@
|
|
1 |
transformers
|
2 |
torch
|
3 |
sklearn
|
|
|
|
|
|
|
|
|
|
1 |
transformers
|
2 |
torch
|
3 |
sklearn
|
4 |
+
spacy
|
5 |
+
numpy
|
6 |
+
scipy
|
7 |
+
re
|