Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ from transformers import pipeline
|
|
9 |
|
10 |
nlp = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
11 |
|
12 |
-
context = "My name is
|
13 |
question = "what is my profession?"
|
14 |
|
15 |
result = nlp(question = question, context=context)
|
@@ -22,7 +22,7 @@ def func(context, question):
|
|
22 |
result = nlp(question = question, context=context)
|
23 |
return result['answer']
|
24 |
|
25 |
-
example_1 = "(1)
|
26 |
qst_1 = "who are the team members?"
|
27 |
|
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."
|
|
|
9 |
|
10 |
nlp = pipeline("question-answering", model=model, tokenizer=tokenizer)
|
11 |
|
12 |
+
context = "My name is Kanishka, i am a data scientist and machine learning engineer."
|
13 |
question = "what is my profession?"
|
14 |
|
15 |
result = nlp(question = question, context=context)
|
|
|
22 |
result = nlp(question = question, context=context)
|
23 |
return result['answer']
|
24 |
|
25 |
+
example_1 = "(1) Kanishka,Preeti,Hema and Shaksham are the team members.They are working on a machine learning project"
|
26 |
qst_1 = "who are the team members?"
|
27 |
|
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."
|