bgk commited on
Commit
d592d52
·
1 Parent(s): 791fda7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,8 +13,8 @@ def ner(text, model):
13
  text = " ".join(text.translate(trans_table).split())
14
  text = text.lower()
15
  prediction, model_output = model.predict([text])
16
-
17
- return prediction
18
 
19
  demo = gr.Interface(fn=ner, inputs=gr.Textbox(lines=5, placeholder='Enter your input here'), outputs=gr.Textbox(lines=10, placeholder='Sipariş dökümü'),examples=['İki pide ve iki büyük ayran istiyorum, kapıda nakit öderim, evime yollayın...' , 'Bir mantı, iki döner, üç mevsim salata, bir kola ve iki sprite istiyorum, iş yerime gönderin' ],
20
  title="Söyle Gelsin", description="Yemek siparişi uygulamamızı kullanabilirsiniz...")
 
13
  text = " ".join(text.translate(trans_table).split())
14
  text = text.lower()
15
  prediction, model_output = model.predict([text])
16
+ output = prediction
17
+ return output
18
 
19
  demo = gr.Interface(fn=ner, inputs=gr.Textbox(lines=5, placeholder='Enter your input here'), outputs=gr.Textbox(lines=10, placeholder='Sipariş dökümü'),examples=['İki pide ve iki büyük ayran istiyorum, kapıda nakit öderim, evime yollayın...' , 'Bir mantı, iki döner, üç mevsim salata, bir kola ve iki sprite istiyorum, iş yerime gönderin' ],
20
  title="Söyle Gelsin", description="Yemek siparişi uygulamamızı kullanabilirsiniz...")