Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def answer_question(news_content, question):
|
|
| 114 |
|
| 115 |
confidence = torch.max(torch.softmax(outputs.start_logits, dim=1)).item()
|
| 116 |
|
| 117 |
-
return f"**Answer:**:- {answer.strip()}\n\n**Confidence:**:- {confidence:.2%}"
|
| 118 |
except Exception as e:
|
| 119 |
return f"Error: {str(e)}"
|
| 120 |
|
|
|
|
| 114 |
|
| 115 |
confidence = torch.max(torch.softmax(outputs.start_logits, dim=1)).item()
|
| 116 |
|
| 117 |
+
return f"**Answer:** :- {answer.strip()}\n\n**Confidence:** :- {confidence:.2%}"
|
| 118 |
except Exception as e:
|
| 119 |
return f"Error: {str(e)}"
|
| 120 |
|