Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,12 @@ qst_1 = "who are the team members?"
|
|
| 28 |
example_2 = "(2) Natural Language Processing (NLP) allows machines to break down and interpret human language. It's at the core of tools we use every day – from translation software, chatbots, spam filters, and search engines, to grammar correction software, voice assistants, and social media monitoring tools."
|
| 29 |
qst_2 = "What is NLP used for?"
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# creating the interface
|
| 32 |
app = gr.Interface(fn=func,
|
| 33 |
inputs = ['textbox', 'text'],
|
|
@@ -35,7 +41,9 @@ app = gr.Interface(fn=func,
|
|
| 35 |
title = 'Question Answering bot',
|
| 36 |
description = 'Input context and question, then get answers!',
|
| 37 |
examples = [[example_1, qst_1],
|
| 38 |
-
[example_2, qst_2]
|
|
|
|
|
|
|
| 39 |
theme = "darkhuggingface",
|
| 40 |
Timeout =120,
|
| 41 |
allow_flagging="manual",
|
|
|
|
| 28 |
example_2 = "(2) Natural Language Processing (NLP) allows machines to break down and interpret human language. It's at the core of tools we use every day – from translation software, chatbots, spam filters, and search engines, to grammar correction software, voice assistants, and social media monitoring tools."
|
| 29 |
qst_2 = "What is NLP used for?"
|
| 30 |
|
| 31 |
+
example_3 = "(3) मशीन लर्निंग आर्टिफिशियल इंटेलिजेंस की एक शाखा है। यह एक लोकप्रिय प्रमुख है।"
|
| 32 |
+
qst_3 = "मशीन लर्निंग किसकी एक शाखा है?"
|
| 33 |
+
|
| 34 |
+
example_4 = "(4) माउन्ट एवरेस्ट विश्वको सबैभन्दा अग्लो हिमाल हो, जसको शिखर समुन्द्री सतहबाट 8,848 मिटर (29,029फिट) उचाइमा छ। यो हिमालयमा नेपाल र तिब्बत (चीन) बीचको सीमामा रहेको महालंगुर पर्वतमालामा अवस्थित छ।"
|
| 35 |
+
qst_4 = "सगरमाथाको उचाई कति छ ?"
|
| 36 |
+
|
| 37 |
# creating the interface
|
| 38 |
app = gr.Interface(fn=func,
|
| 39 |
inputs = ['textbox', 'text'],
|
|
|
|
| 41 |
title = 'Question Answering bot',
|
| 42 |
description = 'Input context and question, then get answers!',
|
| 43 |
examples = [[example_1, qst_1],
|
| 44 |
+
[example_2, qst_2],
|
| 45 |
+
[example_3, qst_3],
|
| 46 |
+
[example_4, qst_4]],
|
| 47 |
theme = "darkhuggingface",
|
| 48 |
Timeout =120,
|
| 49 |
allow_flagging="manual",
|