Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,10 +4,10 @@ from langchain.llms import HuggingFaceHub
|
|
4 |
|
5 |
model_repo = os.getenv('HF_MODEL_REPO')
|
6 |
template = """[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>>
|
7 |
-
Begin of the document
|
8 |
-
|
9 |
-
End of the document
|
10 |
-
{target} translated
|
11 |
|
12 |
"""
|
13 |
|
|
|
4 |
|
5 |
model_repo = os.getenv('HF_MODEL_REPO')
|
6 |
template = """[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>>
|
7 |
+
----------------Begin of the document:--------------------
|
8 |
+
{query}
|
9 |
+
----------------End of the document--------------------[/INST]
|
10 |
+
{target} translated:
|
11 |
|
12 |
"""
|
13 |
|