tomofi commited on
Commit
9ef9c2e
1 Parent(s): 4704dad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,10 +5,6 @@ os.system('git clone --depth 1 https://github.com/neologd/mecab-unidic-neologd.g
5
 
6
  import streamlit as st
7
 
8
- if st.button('Update NEologd', help='It may take some time'):
9
- os.system('cd mecab-ipadic-neologd && ./bin/install-mecab-ipadic-neologd -n -y -u -p $PWD')
10
- os.system('cd mecab-unidic-neologd && ./bin/install-mecab-unidic-neologd -n -y -u -p $PWD')
11
-
12
  import MeCab
13
 
14
  st.set_page_config(page_title="NEologd demo")
@@ -20,6 +16,10 @@ Input the text you'd like to analyze. See the [NEologd][] docs for more details.
20
  [NEologd]: https://github.com/neologd
21
  """
22
 
 
 
 
 
23
  text = st.text_area("input", "麩菓子は、麩を主材料とした日本の菓子。")
24
 
25
  def make_row(word):
 
5
 
6
  import streamlit as st
7
 
 
 
 
 
8
  import MeCab
9
 
10
  st.set_page_config(page_title="NEologd demo")
 
16
  [NEologd]: https://github.com/neologd
17
  """
18
 
19
+ if st.button('Update NEologd', help='It may take some time'):
20
+ os.system('cd mecab-ipadic-neologd && ./bin/install-mecab-ipadic-neologd -n -y -u -p $PWD')
21
+ os.system('cd mecab-unidic-neologd && ./bin/install-mecab-unidic-neologd -n -y -u -p $PWD')
22
+
23
  text = st.text_area("input", "麩菓子は、麩を主材料とした日本の菓子。")
24
 
25
  def make_row(word):