Spaces:
Runtime error
Runtime error
Commit
•
f6842b2
1
Parent(s):
d148285
Update app.py
Browse files
app.py
CHANGED
@@ -47,10 +47,10 @@ def generate(
|
|
47 |
chat_history: list[tuple[str, str]],
|
48 |
system_prompt: str,
|
49 |
max_new_tokens: int = 1024,
|
50 |
-
temperature: float = 0.
|
51 |
-
top_p: float = 0.
|
52 |
top_k: int = 50,
|
53 |
-
repetition_penalty: float = 1.
|
54 |
) -> Iterator[str]:
|
55 |
conversation = []
|
56 |
if system_prompt:
|
|
|
47 |
chat_history: list[tuple[str, str]],
|
48 |
system_prompt: str,
|
49 |
max_new_tokens: int = 1024,
|
50 |
+
temperature: float = 0.95,
|
51 |
+
top_p: float = 0.7,
|
52 |
top_k: int = 50,
|
53 |
+
repetition_penalty: float = 1.0,
|
54 |
) -> Iterator[str]:
|
55 |
conversation = []
|
56 |
if system_prompt:
|