Spaces:
Sleeping
Sleeping
Joaoffg
commited on
Commit
·
f70beba
1
Parent(s):
084e23a
Update space
Browse files
app.py
CHANGED
@@ -8,6 +8,8 @@ class CustomPrompter(Prompter):
|
|
8 |
def get_response(self, output: str) -> str:
|
9 |
return output.split(self.template["response_split"])[1].strip().split("### Instruction:")[0]
|
10 |
|
|
|
|
|
11 |
prompter = CustomPrompter(prompt_template_name)
|
12 |
|
13 |
def tokenize(prompt, add_eos_token=True):
|
|
|
8 |
def get_response(self, output: str) -> str:
|
9 |
return output.split(self.template["response_split"])[1].strip().split("### Instruction:")[0]
|
10 |
|
11 |
+
prompt_template_name = "alpaca" # The prompt template to use, will default to alpaca.
|
12 |
+
|
13 |
prompter = CustomPrompter(prompt_template_name)
|
14 |
|
15 |
def tokenize(prompt, add_eos_token=True):
|