amirgame197 commited on
Commit
3c5c235
·
verified ·
1 Parent(s): c3e0ad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -47,9 +47,11 @@ def generate(
47
  output += response.token.text
48
  yield output
49
  if(translate_fa == True):
50
- output = GoogleTranslator(source='auto', target='fa').translate(output)
51
- print(output)
52
- return output
 
 
53
 
54
 
55
  additional_inputs=[
 
47
  output += response.token.text
48
  yield output
49
  if(translate_fa == True):
50
+ output_fa = GoogleTranslator(source='auto', target='fa').translate(output)
51
+ print(output_fa)
52
+ return output_fa
53
+ else:
54
+ return output
55
 
56
 
57
  additional_inputs=[