Update app.py
Browse files
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":
|