Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
-
pipe = pipeline("question-answering")
|
6 |
|
7 |
def get_sentiment(question, context):
|
8 |
answer = pipe(question=question, context="i am genuis")
|
|
|
2 |
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
pipe = pipeline("question-answering", model="deepset/roberta-large-squad2")
|
6 |
|
7 |
def get_sentiment(question, context):
|
8 |
answer = pipe(question=question, context="i am genuis")
|