Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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.
|
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.
|
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,
|