amitu009 commited on
Commit
d993dfb
·
1 Parent(s): c68af9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ pipe = pipeline("question-answering")
6
 
7
  def get_sentiment(question, context):
8
  answer = pipe(question=question, context="i am genuis")
9
- return answer["answer"]
10
 
11
  iface = gr.Interface(fn = get_sentiment,
12
  inputs = "text",
 
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,
12
  inputs = "text",