Update app.py
Browse files
app.py
CHANGED
|
@@ -85,7 +85,7 @@ def respond(message, history: list, model_name, preset_name):
|
|
| 85 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 86 |
return response.split("AI:")[-1].strip() # Extract the AI's response
|
| 87 |
|
| 88 |
-
def respond_with_pseudonym(message, history, selected_model,
|
| 89 |
try:
|
| 90 |
model_id = next(model[0] for model in model_choices if model[1] == selected_model)
|
| 91 |
except StopIteration:
|
|
|
|
| 85 |
response = tokenizer.decode(output[0], skip_special_tokens=True)
|
| 86 |
return response.split("AI:")[-1].strip() # Extract the AI's response
|
| 87 |
|
| 88 |
+
def respond_with_pseudonym(message, history, selected_model, selected_preset):
|
| 89 |
try:
|
| 90 |
model_id = next(model[0] for model in model_choices if model[1] == selected_model)
|
| 91 |
except StopIteration:
|