Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,8 @@ from transformers import pipeline
|
|
4 |
|
5 |
pipe = pipeline("question-answering", model="deepset/roberta-large-squad2")
|
6 |
|
7 |
-
def get_sentiment(
|
8 |
-
answer = pipe(question=
|
9 |
return answer
|
10 |
|
11 |
iface = gr.Interface(fn = get_sentiment,
|
|
|
4 |
|
5 |
pipe = pipeline("question-answering", model="deepset/roberta-large-squad2")
|
6 |
|
7 |
+
def get_sentiment(input_text, context):
|
8 |
+
answer = pipe(question=input_text, context="i am genuis")
|
9 |
return answer
|
10 |
|
11 |
iface = gr.Interface(fn = get_sentiment,
|