Spaces:
Runtime error
Runtime error
first commit
Browse files- app.py +13 -0
- requirements.txt +3 -0
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.markdown("### Hello, world!")
|
| 4 |
+
st.markdown("<img width=200px src='https://rozetked.me/images/uploads/dwoilp3BVjlE.jpg'>", unsafe_allow_html=True)
|
| 5 |
+
|
| 6 |
+
from transformers import pipeline
|
| 7 |
+
|
| 8 |
+
pipe = pipeline("ner", "Davlan/distilbert-base-multilingual-cased-ner-hrl")
|
| 9 |
+
|
| 10 |
+
text = st.text_area("TEXT HERE")
|
| 11 |
+
|
| 12 |
+
st.markdown(f"{pipe(text)}")
|
| 13 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
transformers
|
| 2 |
+
torch
|
| 3 |
+
|