Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,13 +4,11 @@ from langchain.llms import HuggingFaceHub
|
|
4 |
|
5 |
llama_repo = os.getenv('HF_MODEL_LLAMA_REPO')
|
6 |
starchat_repo = os.getenv('HF_MODEL_STARCHAT_REPO')
|
7 |
-
llamma_template = """
|
8 |
-
|
9 |
-
====================================================
|
10 |
{query}
|
11 |
-
|
12 |
{target} translated document:
|
13 |
-
====================================================
|
14 |
|
15 |
"""
|
16 |
starchat_template = """<|system|>I want you to act as document language translator. You do translation {source} texts in document into then you return to me the translated document AND DO NOTHING ELSE.<</SYS>>
|
|
|
4 |
|
5 |
llama_repo = os.getenv('HF_MODEL_LLAMA_REPO')
|
6 |
starchat_repo = os.getenv('HF_MODEL_STARCHAT_REPO')
|
7 |
+
llamma_template = """<s>[INST]<<SYS>>I want you to act as document language translator. You do translation {source} texts in document into then you return to me the translated document AND DO NOTHING ELSE.<</SYS>>[/INST]
|
8 |
+
[INST]Begin of the document:
|
|
|
9 |
{query}
|
10 |
+
End of the document.[/INST]
|
11 |
{target} translated document:
|
|
|
12 |
|
13 |
"""
|
14 |
starchat_template = """<|system|>I want you to act as document language translator. You do translation {source} texts in document into then you return to me the translated document AND DO NOTHING ELSE.<</SYS>>
|