Pragformer commited on
Commit
26fb66e
1 Parent(s): 1c4aec8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -95,7 +95,7 @@ def lang_predict(code_txt):
95
  for lang_idx, conf in zip(top5.indices.flatten(), top5.values.flatten()):
96
  res[name_file[lang_idx.item()]] = conf.item()
97
 
98
- return '\n'.join([f" {'V ' if k=='c' else 'X'}{k}: {v}" for k,v in res.items()])
99
 
100
 
101
 
 
95
  for lang_idx, conf in zip(top5.indices.flatten(), top5.values.flatten()):
96
  res[name_file[lang_idx.item()]] = conf.item()
97
 
98
+ return '\n'.join([f" {'' if k=='c' else ''} {k}: {v}" for k,v in res.items()])
99
 
100
 
101