kochaporn commited on
Commit
c77facb
1 Parent(s): 5d72aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,10 +1,10 @@
1
  import gradio as gr
2
  import os
3
- os.system('python -m spacy download en_core_web_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,8 +30,8 @@ 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
  ],
36
  )
37
 
 
1
  import gradio as gr
2
  import os
3
+ os.system('python -m spacy download de_core_news_sm')
4
  import spacy
5
  from spacy import displacy
6
 
7
+ nlp = spacy.load("de_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
+ ["Ich will dass ihr mir vertraut"],
34
+ ["Ich versteh euch nothing"],
35
  ],
36
  )
37