wangzhang commited on
Commit
6ba060e
·
1 Parent(s): 9d917e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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.2,
43
- top_p: float = 0.9,
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
- ["如何安装SequioaDB?"],
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