Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import pipeline
|
|
4 |
|
5 |
sentiment = pipeline("question-answering")
|
6 |
|
7 |
-
def
|
8 |
answer = pipe(question=question, context="i am genuis")
|
9 |
return answer["answer"]
|
10 |
|
|
|
4 |
|
5 |
sentiment = pipeline("question-answering")
|
6 |
|
7 |
+
def get_sentiment(question, context):
|
8 |
answer = pipe(question=question, context="i am genuis")
|
9 |
return answer["answer"]
|
10 |
|