Setting streamlit view to wide
Browse files
app.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import spacy_streamlit
|
|
|
2 |
|
|
|
3 |
|
4 |
models = {"hu_core_news_lg": "hu_core_news_lg"}
|
5 |
|
@@ -7,12 +9,12 @@ default_text = """Újraoltatta magát Szputnyik Light vakcinával a Covid-19 ell
|
|
7 |
Itt az újabb kamatdöntés napja. Az MNB adhat irányt a forintnak."""
|
8 |
|
9 |
spacy_streamlit.visualize(
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
)
|
|
|
1 |
import spacy_streamlit
|
2 |
+
import streamlit as st
|
3 |
|
4 |
+
st.set_page_config(layout="wide")
|
5 |
|
6 |
models = {"hu_core_news_lg": "hu_core_news_lg"}
|
7 |
|
|
|
9 |
Itt az újabb kamatdöntés napja. Az MNB adhat irányt a forintnak."""
|
10 |
|
11 |
spacy_streamlit.visualize(
|
12 |
+
models,
|
13 |
+
default_text,
|
14 |
+
["parser", "ner", "tokens", "similarity"],
|
15 |
+
show_json_doc=False,
|
16 |
+
sidebar_title="🚀 HuSpaCy",
|
17 |
+
sidebar_description="Industrial strength Hungarian NLP",
|
18 |
+
similarity_texts=("kifli", "zsemle"),
|
19 |
+
show_logo=False
|
20 |
)
|