Spaces:
Runtime error
Runtime error
Commit
·
2fcdaa5
1
Parent(s):
0eb163e
Update run.py
Browse files
run.py
CHANGED
@@ -24,7 +24,7 @@ def response(message, history, model, prompt_type):
|
|
24 |
if(prompt_type=="ChatML (German)"):
|
25 |
body={"prompt":"<|im_start|>system\nDu bist ein KI-basiertes deutschsprachiges Assistenzsystem.<|im_end|>\n<|im_start|>user"+message+"<|im_end|>\n<|im_start|>assistant","max_tokens":1000,"stop":"<|im_end|>","stream":True}
|
26 |
if(prompt_type=="Alpaca"):
|
27 |
-
body={"prompt":"###Instruction
|
28 |
if(prompt_type=="Vicuna"):
|
29 |
body={"prompt":"A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: "+message+" ASSISTANT:","max_tokens":1000,"stop":"USER:","stream":True}
|
30 |
if(prompt_type=="Vicuna (German)"):
|
|
|
24 |
if(prompt_type=="ChatML (German)"):
|
25 |
body={"prompt":"<|im_start|>system\nDu bist ein KI-basiertes deutschsprachiges Assistenzsystem.<|im_end|>\n<|im_start|>user"+message+"<|im_end|>\n<|im_start|>assistant","max_tokens":1000,"stop":"<|im_end|>","stream":True}
|
26 |
if(prompt_type=="Alpaca"):
|
27 |
+
body={"prompt":"###Instruction:\n"+message+"\n\n###Resonse:\n","max_tokens":1000,"stop":"###","stream":True}
|
28 |
if(prompt_type=="Vicuna"):
|
29 |
body={"prompt":"A chat between a curious user and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the user's questions. USER: "+message+" ASSISTANT:","max_tokens":1000,"stop":"USER:","stream":True}
|
30 |
if(prompt_type=="Vicuna (German)"):
|