oroszgy commited on
Commit
811879f
1 Parent(s): 0512d9a

Setting streamlit view to wide

Browse files
Files changed (1) hide show
  1. app.py +10 -8
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
- models,
11
- default_text,
12
- ["parser", "ner", "tokens", "similarity"],
13
- show_json_doc = False,
14
- sidebar_title = "🚀 HuSpaCy",
15
- sidebar_description = "Industrial strength Hungarian NLP",
16
- similarity_texts = ("kifli", "zsemle"),
17
- show_logo = False
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
  )