Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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...")
|