jiangjiechen commited on
Commit
1dc8f22
·
1 Parent(s): f18943d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -55,8 +55,8 @@ def gradio_formatter(js, output_type):
55
  data = {'Evidence': js['evidence']}
56
  elif output_type == 'z':
57
  data = {
58
- 'Claim Phrase': js['claim_phrase'],
59
- 'Local Premise': [x[0] for x in js['local_premise']],
60
  'p_SUP': [round(x[2], 4) for x in js['phrase_veracity']],
61
  'p_REF': [round(x[0], 4) for x in js['phrase_veracity']],
62
  'p_NEI': [round(x[1], 4) for x in js['phrase_veracity']],
 
55
  data = {'Evidence': js['evidence']}
56
  elif output_type == 'z':
57
  data = {
58
+ 'Claim Phrase': js['claim_phrases'],
59
+ 'Local Premise': [x[0] for x in js['local_premises']],
60
  'p_SUP': [round(x[2], 4) for x in js['phrase_veracity']],
61
  'p_REF': [round(x[0], 4) for x in js['phrase_veracity']],
62
  'p_NEI': [round(x[1], 4) for x in js['phrase_veracity']],