amitu009 commited on
Commit
7c52329
1 Parent(s): 3f993ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(question, context):
8
- answer = pipe(question=question, context="i am genuis")
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,