Spaces:
Sleeping
Sleeping
Commit
·
d81886a
1
Parent(s):
af6f767
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,13 @@ def predict_function(text):
|
|
28 |
return slot_prediction, intent_preds
|
29 |
|
30 |
|
31 |
-
title = "Tamil
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
iface.launch()
|
34 |
|
|
|
28 |
return slot_prediction, intent_preds
|
29 |
|
30 |
|
31 |
+
title = "MultiTask Learning in Intent Detection and Slot Prediction for Tamil Conversational Dialogues using Multilingual Pretrained Models"
|
32 |
+
article="This is a demo for the MultiTask model trained on Tamil Translated conversations from ATIS dataset"
|
33 |
+
examples = ["ஹைதராபாத்தில் இருந்து உதய்பூர் செல்லும் விமானங்களைக் காட்டு", "எனக்கு டெல்லியில் இருந்து சென்னைக்கு விமானம் வேண்டும்"]
|
34 |
+
|
35 |
+
intent_output = gr.outputs.Textbox(type="auto",label="Intent")
|
36 |
+
slots_output = gr.outputs.Textbox(type="auto",label="Slots")
|
37 |
+
iface = gr.Interface(fn=predict_function,article=article, inputs="text", title=title,outputs=[intent_output,slots_output],
|
38 |
+
examples=examples)
|
39 |
iface.launch()
|
40 |
|