taishi-i commited on
Commit
ac4ddfc
·
1 Parent(s): 53f2005

fix app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ def tokenize(text):
10
  num_input_lines = 3
11
  input_placeholder = "Please input text here."
12
  title = "Japanese tokenization demo"
13
- default_text = "ここにテキストを入力すると、リアルタイムで処理結果を確認することができます。"
14
  description = """
15
  This is a demo page for nagisa's tokenization.
16
  Nagisa is a Python module used for tokenizing and performing Part-of-Speech (POS) tagging on Japanese text.
@@ -19,6 +19,7 @@ To try it out, enter some text in the box below and press submit.
19
  https://github.com/taishi-i/nagisa
20
  """
21
 
 
22
  examples = ["Pythonで簡単に使えるツールです", "3月に見た「3月のライオン」", "福岡・博多の観光情報"]
23
 
24
  iface = gr.Interface(
@@ -36,7 +37,6 @@ iface = gr.Interface(
36
  gr.outputs.Textbox(label="Words"),
37
  gr.outputs.Textbox(label="POS tags"),
38
  ],
39
- live=True,
40
  )
41
 
42
 
 
10
  num_input_lines = 3
11
  input_placeholder = "Please input text here."
12
  title = "Japanese tokenization demo"
13
+ default_text = "ここにテキストを入力し、Submit を押してください。"
14
  description = """
15
  This is a demo page for nagisa's tokenization.
16
  Nagisa is a Python module used for tokenizing and performing Part-of-Speech (POS) tagging on Japanese text.
 
19
  https://github.com/taishi-i/nagisa
20
  """
21
 
22
+
23
  examples = ["Pythonで簡単に使えるツールです", "3月に見た「3月のライオン」", "福岡・博多の観光情報"]
24
 
25
  iface = gr.Interface(
 
37
  gr.outputs.Textbox(label="Words"),
38
  gr.outputs.Textbox(label="POS tags"),
39
  ],
 
40
  )
41
 
42