qanastek commited on
Commit
3542965
1 Parent(s): 4353aed
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -6,11 +6,13 @@ from flair.models import SequenceTagger
6
  # Load the model
7
  model = SequenceTagger.load("qanastek/pos-french")
8
 
9
- def greet(name):
10
 
11
- res = "Hello " + name + "!!"
12
 
13
- sentence = Sentence("George Washington est allé à Washington")
 
 
14
 
15
  # predict tags
16
  model.predict(sentence)
 
6
  # Load the model
7
  model = SequenceTagger.load("qanastek/pos-french")
8
 
9
+ def greet(content):
10
 
11
+ # George Washington est allé à Washington
12
 
13
+ # res = "Hello " + content + "!!"
14
+
15
+ sentence = Sentence(content)
16
 
17
  # predict tags
18
  model.predict(sentence)