Jinapa commited on
Commit
0806471
·
1 Parent(s): c5ee1c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -4,7 +4,7 @@ os.system('python -m spacy download ja_core_news_sm')
4
  import spacy
5
  from spacy import displacy
6
 
7
- nlp = spacy.load("en_core_web_sm")
8
 
9
  def text_analysis(text):
10
  doc = nlp(text)
@@ -30,9 +30,9 @@ demo = gr.Interface(
30
  gr.Textbox(placeholder="Enter sentence here..."),
31
  ["highlight", "json", "html"],
32
  examples=[
33
- ["What a beautiful morning for a walk!"],
34
- ["It was the best of times, it was the worst of times."],
35
- ["Fahsai is the best woman in this world"],
36
  ],
37
  )
38
 
 
4
  import spacy
5
  from spacy import displacy
6
 
7
+ nlp = spacy.load("ja_core_news_sm")
8
 
9
  def text_analysis(text):
10
  doc = nlp(text)
 
30
  gr.Textbox(placeholder="Enter sentence here..."),
31
  ["highlight", "json", "html"],
32
  examples=[
33
+ ["あなたは結婚しましたか?"],
34
+ ["私は今独身です。"],
35
+ ["一緒に食事に行きませんか?"],
36
  ],
37
  )
38