Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def detect_lang(
|
|
54 |
|
55 |
|
56 |
def identify(text):
|
57 |
-
return dict(detect_lang(text, return_proba=True))
|
58 |
|
59 |
iface = gr.Interface(fn=identify, inputs="text", outputs="label")
|
60 |
iface.launch()
|
|
|
54 |
|
55 |
|
56 |
def identify(text):
|
57 |
+
return dict(detect_lang(text.replace("\n", " "), return_proba=True))
|
58 |
|
59 |
iface = gr.Interface(fn=identify, inputs="text", outputs="label")
|
60 |
iface.launch()
|