Spaces:
Sleeping
Sleeping
Update
Browse files- app.py +5 -6
- requirements.txt +2 -1
app.py
CHANGED
@@ -37,14 +37,13 @@ examples = [
|
|
37 |
["Thuốc này đã bị cấm sử dụng trong ngành thú y tại Ấn Độ.", "vi->en"]
|
38 |
]
|
39 |
|
40 |
-
|
41 |
fn=translation,
|
42 |
title="Co Gai Mo Duong",
|
43 |
description=description,
|
44 |
examples=examples,
|
45 |
-
inputs=
|
46 |
-
|
47 |
-
|
48 |
-
outputs=["text", "text", "text"])
|
49 |
|
50 |
-
|
|
|
37 |
["Thuốc này đã bị cấm sử dụng trong ngành thú y tại Ấn Độ.", "vi->en"]
|
38 |
]
|
39 |
|
40 |
+
demo = gr.Interface(
|
41 |
fn=translation,
|
42 |
title="Co Gai Mo Duong",
|
43 |
description=description,
|
44 |
examples=examples,
|
45 |
+
inputs=gr.Textbox(lines=5, placeholder="Enter text (maximum 5 lines)", label="Input"),
|
46 |
+
outputs=["text", "text", "text"]
|
47 |
+
)
|
|
|
48 |
|
49 |
+
demo.launch()
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
transformers
|
2 |
sentencepiece
|
3 |
tokenizers
|
4 |
-
torch
|
|
|
|
1 |
transformers
|
2 |
sentencepiece
|
3 |
tokenizers
|
4 |
+
torch
|
5 |
+
gradio==3.50
|