davda54 commited on
Commit
3d7e4b1
1 Parent(s): 54c1f0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -79,7 +79,8 @@ def set_default_target():
79
 
80
  def translate(source, source_language, target_language):
81
  if source_language == target_language:
82
- return source
 
83
 
84
  source = [s.strip() for s in source.split('\n')]
85
  source_subwords = tokenizer(source).input_ids
 
79
 
80
  def translate(source, source_language, target_language):
81
  if source_language == target_language:
82
+ yield source.strip()
83
+ return source.strip()
84
 
85
  source = [s.strip() for s in source.split('\n')]
86
  source_subwords = tokenizer(source).input_ids