Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ strategy = CreativeWritingStrategy(provider,
|
|
| 24 |
top_p_flat = 0.65,
|
| 25 |
top_k_threshold_flat = 9,
|
| 26 |
eos_penalty = 0.8)
|
| 27 |
-
creative_sampler = BacktrackSampler(
|
| 28 |
|
| 29 |
def create_chat_template_messages(history, prompt):
|
| 30 |
messages = [{"role": "user", "content": prompt}]
|
|
|
|
| 24 |
top_p_flat = 0.65,
|
| 25 |
top_k_threshold_flat = 9,
|
| 26 |
eos_penalty = 0.8)
|
| 27 |
+
creative_sampler = BacktrackSampler(provider, strategy)
|
| 28 |
|
| 29 |
def create_chat_template_messages(history, prompt):
|
| 30 |
messages = [{"role": "user", "content": prompt}]
|