Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ def generate(
|
|
39 |
chat_history: list[tuple[str, str]],
|
40 |
system_prompt: str,
|
41 |
max_new_tokens: int = 1024,
|
42 |
-
temperature: float = 0.
|
43 |
-
top_p: float = 0.
|
44 |
top_k: int = 1,
|
45 |
repetition_penalty: float = 1.0,
|
46 |
) -> Iterator[str]:
|
@@ -120,9 +120,9 @@ chat_interface = gr.ChatInterface(
|
|
120 |
],
|
121 |
stop_btn=None,
|
122 |
examples=[
|
123 |
-
["
|
124 |
-
["SequioaDB有哪些优势?"],
|
125 |
-
["SequioaDB是什么?"],
|
126 |
],
|
127 |
)
|
128 |
|
|
|
39 |
chat_history: list[tuple[str, str]],
|
40 |
system_prompt: str,
|
41 |
max_new_tokens: int = 1024,
|
42 |
+
temperature: float = 0.1,
|
43 |
+
top_p: float = 0.99,
|
44 |
top_k: int = 1,
|
45 |
repetition_penalty: float = 1.0,
|
46 |
) -> Iterator[str]:
|
|
|
120 |
],
|
121 |
stop_btn=None,
|
122 |
examples=[
|
123 |
+
["如何安装巨杉数据库SequioaDB?"],
|
124 |
+
["巨杉数据库SequioaDB有哪些优势?"],
|
125 |
+
["巨杉数据库SequioaDB是什么?"],
|
126 |
],
|
127 |
)
|
128 |
|