Montazerh82
commited on
Commit
•
241d158
1
Parent(s):
86887da
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def func(inp):
|
|
17 |
result = ''
|
18 |
out = pipe(inp)
|
19 |
for lang in out:
|
20 |
-
result += languages[int(lang['label'][6:])] + ' ' + lang['score'] + '\n'
|
21 |
return result
|
22 |
|
23 |
demo = gr.Interface(fn=func, inputs="text", outputs="text")
|
|
|
17 |
result = ''
|
18 |
out = pipe(inp)
|
19 |
for lang in out:
|
20 |
+
result += languages[int(lang['label'][6:])] + ' ' + str(lang['score']) + '\n'
|
21 |
return result
|
22 |
|
23 |
demo = gr.Interface(fn=func, inputs="text", outputs="text")
|