jwalanthi commited on
Commit
8ef53bc
·
1 Parent(s): 1cd9844

output formatting

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def predict (Word, Sentence, modelname):
32
  pred = pred.squeeze(0)
33
  pred_list = pred.detach().numpy().tolist()
34
 
35
- output = [labels[i]+'\t'+str(pred_list[i]) for i in range(len(labels)) if pred_list[i] > 0.0]
36
  return "All Positive Predicted Values:\n"+"\n".join(output)
37
 
38
  demo = gr.Interface(
 
32
  pred = pred.squeeze(0)
33
  pred_list = pred.detach().numpy().tolist()
34
 
35
+ output = [labels[i]+'\t\t\t'+str(pred_list[i]) for i in range(len(labels)) if pred_list[i] > 0.0]
36
  return "All Positive Predicted Values:\n"+"\n".join(output)
37
 
38
  demo = gr.Interface(