habdine commited on
Commit
5baef4a
·
verified ·
1 Parent(s): 613e02f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,7 +40,7 @@ def generate(
40
  temperature: float = 0.6,
41
  top_p: float = 0.9,
42
  top_k: int = 50,
43
- repetition_penalty: float = 1.0,
44
  ) -> Iterator[str]:
45
  conversation = chat_history.copy()
46
  conversation.append({"role": "user", "content": message})
@@ -109,7 +109,7 @@ chat_interface = gr.ChatInterface(
109
  minimum=1.0,
110
  maximum=2.0,
111
  step=0.05,
112
- value=1.0,
113
  ),
114
  ],
115
  stop_btn=None,
 
40
  temperature: float = 0.6,
41
  top_p: float = 0.9,
42
  top_k: int = 50,
43
+ repetition_penalty: float = 1.1,
44
  ) -> Iterator[str]:
45
  conversation = chat_history.copy()
46
  conversation.append({"role": "user", "content": message})
 
109
  minimum=1.0,
110
  maximum=2.0,
111
  step=0.05,
112
+ value=1.1,
113
  ),
114
  ],
115
  stop_btn=None,