KvrParaskevi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -39,6 +39,9 @@ gen_kwargs = dict(
|
|
39 |
stop_sequences=["\nUser:", "<|endoftext|>", "</s>", "\nHuman:"],
|
40 |
)
|
41 |
|
|
|
|
|
|
|
42 |
def chat_template_prompt():
|
43 |
template = """
|
44 |
Do not repeat questions and do not generate answer for user/human.Do not repeat yourself and do not create/generate dialogues.
|
|
|
39 |
stop_sequences=["\nUser:", "<|endoftext|>", "</s>", "\nHuman:"],
|
40 |
)
|
41 |
|
42 |
+
|
43 |
+
stream = client.text_generation(prompt, stream=True, details=True, **gen_kwargs)
|
44 |
+
|
45 |
def chat_template_prompt():
|
46 |
template = """
|
47 |
Do not repeat questions and do not generate answer for user/human.Do not repeat yourself and do not create/generate dialogues.
|