Spaces:
Build error
Build error
Commit
·
26fb66e
1
Parent(s):
1c4aec8
Update app.py
Browse files
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" {'
|
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 |
|