Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 23 |
-
|
| 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(
|