versae commited on
Commit
4fe5e20
·
1 Parent(s): 44d8b8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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()