Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,33 +36,8 @@ batch_translate = gr.Interface(
|
|
36 |
fn = translate,
|
37 |
inputs = input_df, #[input1, input2]
|
38 |
outputs = "dataframe",
|
39 |
-
description = "
|
40 |
)
|
41 |
|
42 |
if __name__ == "__main__":
|
43 |
-
batch_translate.launch()
|
44 |
-
|
45 |
-
"""
|
46 |
-
def translate(a):
|
47 |
-
|
48 |
-
return a
|
49 |
-
|
50 |
-
demo = gr.Interface(
|
51 |
-
fn = some_func,
|
52 |
-
[
|
53 |
-
gr.Dataframe(
|
54 |
-
headers=["English", "Dutch"],
|
55 |
-
datatype=["str", "str"],
|
56 |
-
row_count=10,
|
57 |
-
col_count=(2, "fixed"),
|
58 |
-
),
|
59 |
-
gr.Dropdown(["M", "F", "O"]),
|
60 |
-
],
|
61 |
-
"dataframe",
|
62 |
-
description="Add the English text you want to translate",
|
63 |
-
)
|
64 |
-
|
65 |
-
if __name__ == "__main__":
|
66 |
-
gr.Interface.load("models/Helsinki-NLP/opus-mt-en-nl").launch()
|
67 |
-
#demo.launch()
|
68 |
-
"""
|
|
|
36 |
fn = translate,
|
37 |
inputs = input_df, #[input1, input2]
|
38 |
outputs = "dataframe",
|
39 |
+
description = "Hela menneke, fill in the left column with the English text you want to translate"
|
40 |
)
|
41 |
|
42 |
if __name__ == "__main__":
|
43 |
+
batch_translate.launch(share=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|