guidel commited on
Commit
4e78963
1 Parent(s): eecdd62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def translate(df):
22
  if input_string == '':
23
  pass
24
  else:
25
- df.loc[i, 'Dutch'] = str(en_nl_translator(input_string))
26
  return df
27
 
28
  input_df = gr.Dataframe(
 
22
  if input_string == '':
23
  pass
24
  else:
25
+ df.loc[i, 'Dutch'] = en_nl_translator(input_string)[0]['translation_text'] #extract from list, then take the value associated to key 'translation_text'
26
  return df
27
 
28
  input_df = gr.Dataframe(