picocreator
commited on
Commit
•
f316bb5
1
Parent(s):
5dbd048
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ pipeline = PIPELINE(model, "rwkv_vocab_v20230424")
|
|
41 |
|
42 |
# Translation logic
|
43 |
def translate(text, target_language):
|
44 |
-
prompt = f"Translate the following
|
45 |
ctx = prompt.strip()
|
46 |
all_tokens = []
|
47 |
out_last = 0
|
|
|
41 |
|
42 |
# Translation logic
|
43 |
def translate(text, target_language):
|
44 |
+
prompt = f"Translate the following text to {target_language}\n # Input:\n{text}\n\n# Output:\n"
|
45 |
ctx = prompt.strip()
|
46 |
all_tokens = []
|
47 |
out_last = 0
|