Ginidu2003 commited on
Commit
fe7fa0e
·
verified ·
1 Parent(s): 9078c44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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