futranbg commited on
Commit
40058f2
·
1 Parent(s): 6321fb3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
  {query}
9
- ----------------End of the document--------------------[/INST]
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 document:
11
 
12
  """
13