Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,7 @@ def output_inference(tanya, history):
|
|
32 |
prompt = prompt_template.format(ask=tanya)
|
33 |
|
34 |
output = llm(
|
|
|
35 |
prompt,
|
36 |
stop=["<|end_of_text|>"],
|
37 |
max_tokens=512,
|
@@ -57,7 +58,7 @@ gr.ChatInterface(
|
|
57 |
title="Konsultasi dokter",
|
58 |
description="Tanya saja semua keluhan mu",
|
59 |
theme="soft",
|
60 |
-
examples=["apa saja tips hidup sehat?", "apa
|
61 |
cache_examples=True,
|
62 |
retry_btn=None,
|
63 |
undo_btn="Delete Previous",
|
|
|
32 |
prompt = prompt_template.format(ask=tanya)
|
33 |
|
34 |
output = llm(
|
35 |
+
repeat_penalty=1.2,
|
36 |
prompt,
|
37 |
stop=["<|end_of_text|>"],
|
38 |
max_tokens=512,
|
|
|
58 |
title="Konsultasi dokter",
|
59 |
description="Tanya saja semua keluhan mu",
|
60 |
theme="soft",
|
61 |
+
examples=["apa saja tips hidup sehat?", "apa efek samping minum alkohol?"],
|
62 |
cache_examples=True,
|
63 |
retry_btn=None,
|
64 |
undo_btn="Delete Previous",
|