guidel commited on
Commit
ecd242d
·
1 Parent(s): 1acb0b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -18,10 +18,11 @@ def translate(df):
18
  #translate the input_text
19
 
20
  for i in range(len(df['English'])):
21
-
22
- input_string = df.loc[i, 'English']
23
- df.loc[i, 'Dutch'] = en_nl_translator(input_string)
24
-
 
25
  return df
26
 
27
  input_df = gr.Dataframe(
 
18
  #translate the input_text
19
 
20
  for i in range(len(df['English'])):
21
+ input_string = str(df.loc[i, 'English'])
22
+ if input_string == '':
23
+ pass
24
+ else:
25
+ df.loc[i, 'Dutch'] = en_nl_translator(input_string)
26
  return df
27
 
28
  input_df = gr.Dataframe(