Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def generate_llama2_response(prompt_input):
|
|
51 |
string_dialogue += "User: " + dict_message["content"] + "\n\n"
|
52 |
else:
|
53 |
string_dialogue += "Assistant: " + dict_message["content"] + "\n\n"
|
54 |
-
output = replicate.run(
|
55 |
input={"prompt": f"{string_dialogue} {prompt_input} Assistant: ",
|
56 |
"temperature":temperature, "top_p":top_p, "max_length":max_length, "repetition_penalty":1})
|
57 |
return output
|
|
|
51 |
string_dialogue += "User: " + dict_message["content"] + "\n\n"
|
52 |
else:
|
53 |
string_dialogue += "Assistant: " + dict_message["content"] + "\n\n"
|
54 |
+
output = replicate.run(llm,
|
55 |
input={"prompt": f"{string_dialogue} {prompt_input} Assistant: ",
|
56 |
"temperature":temperature, "top_p":top_p, "max_length":max_length, "repetition_penalty":1})
|
57 |
return output
|