roselyu commited on
Commit
3456dab
·
verified ·
1 Parent(s): 951bf5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -39,7 +39,7 @@ else:
39
  question = "What's the opinion?"
40
 
41
  # Generate the answer
42
- result = qa_pipe(question=question, context=context)
43
 
44
  # Display different buttons based on sentiment
45
  if sentiment_label == "positive":
 
39
  question = "What's the opinion?"
40
 
41
  # Generate the answer
42
+ result = qa_pipe(question=question, context=context)[0]["answer"]
43
 
44
  # Display different buttons based on sentiment
45
  if sentiment_label == "positive":