Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def translate(df):
|
|
22 |
if input_string == '':
|
23 |
pass
|
24 |
else:
|
25 |
-
df.loc[i, 'Dutch'] =
|
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(
|