BenBranyon commited on
Commit
097d0df
·
verified ·
1 Parent(s): 57d5b84

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -62,7 +62,7 @@ def generate(
62
  chat_history: list[tuple[str, str]],
63
  max_new_tokens: int = 1024,
64
  temperature: float = 0.6,
65
- top_p: float = 0.9,
66
  top_k: int = 50,
67
  repetition_penalty: float = 1.2,
68
  ) -> Iterator[str]:
@@ -118,7 +118,7 @@ demo = gr.ChatInterface(
118
  gr.Slider(
119
  minimum=0.1,
120
  maximum=1.0,
121
- value=0.2,
122
  step=0.9,
123
  label="Top-p (nucleus sampling)",
124
  ),
 
62
  chat_history: list[tuple[str, str]],
63
  max_new_tokens: int = 1024,
64
  temperature: float = 0.6,
65
+ top_p: float = 0.7,
66
  top_k: int = 50,
67
  repetition_penalty: float = 1.2,
68
  ) -> Iterator[str]:
 
118
  gr.Slider(
119
  minimum=0.1,
120
  maximum=1.0,
121
+ value=0.7,
122
  step=0.9,
123
  label="Top-p (nucleus sampling)",
124
  ),