Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,10 @@ from datasets import load_dataset
|
|
4 |
|
5 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
6 |
dataset = load_dataset("JustKiddo/KiddosVault")
|
|
|
|
|
7 |
translation = load_dataset("IWSLT/mt_eng_vietnamese")
|
|
|
8 |
|
9 |
def translate_text(text, translation_dataset):
|
10 |
# Assuming the translation dataset has a method to translate text
|
|
|
4 |
|
5 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
6 |
dataset = load_dataset("JustKiddo/KiddosVault")
|
7 |
+
|
8 |
+
## A translation dataset for Vietnamese responses ##
|
9 |
translation = load_dataset("IWSLT/mt_eng_vietnamese")
|
10 |
+
trust_remote_code=True ## Trust remote code ##
|
11 |
|
12 |
def translate_text(text, translation_dataset):
|
13 |
# Assuming the translation dataset has a method to translate text
|