Spaces:
Sleeping
Sleeping
Lamp Socrates
commited on
Commit
•
7edd56d
1
Parent(s):
100e8bf
fixed stream err
Browse files- app.py +4 -3
- runtime.txt +0 -1
app.py
CHANGED
@@ -30,9 +30,7 @@ def render_entities(tokens, entities):
|
|
30 |
"""
|
31 |
Renders a page with a 2-column table showing the entity corresponding to each token.
|
32 |
"""
|
33 |
-
|
34 |
-
st.set_page_config(page_title="NER Token Entities", layout="centered")
|
35 |
-
|
36 |
# Custom CSS for chilled and cool theme
|
37 |
st.markdown("""
|
38 |
<style>
|
@@ -72,6 +70,9 @@ def prep_page():
|
|
72 |
model = load_trained_model()
|
73 |
|
74 |
# Streamlit app
|
|
|
|
|
|
|
75 |
st.title("Named Entity Recognition with BERT on PLOD-CW")
|
76 |
st.write("Enter a sentence to see the named entities recognized by the model.")
|
77 |
|
|
|
30 |
"""
|
31 |
Renders a page with a 2-column table showing the entity corresponding to each token.
|
32 |
"""
|
33 |
+
|
|
|
|
|
34 |
# Custom CSS for chilled and cool theme
|
35 |
st.markdown("""
|
36 |
<style>
|
|
|
70 |
model = load_trained_model()
|
71 |
|
72 |
# Streamlit app
|
73 |
+
# Page configuration
|
74 |
+
st.set_page_config(page_title="NER Token Entities", layout="centered")
|
75 |
+
|
76 |
st.title("Named Entity Recognition with BERT on PLOD-CW")
|
77 |
st.write("Enter a sentence to see the named entities recognized by the model.")
|
78 |
|
runtime.txt
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
python-3.11.5
|
|
|
|