user
commited on
Commit
•
5c18653
1
Parent(s):
0d0714c
hh
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
29 |
# Извлечение и возврат текста ответа
|
30 |
context_with_response = [tokenizer.decode(sample_token_ids) for sample_token_ids in generated_token_ids]
|
31 |
result1 = re.sub(r'@@.*?@@', '', context_with_response[0])
|
32 |
-
result2 = result1[len(
|
33 |
yield result2.strip()
|
34 |
|
35 |
# Настройка интерфейса Gradio
|
|
|
29 |
# Извлечение и возврат текста ответа
|
30 |
context_with_response = [tokenizer.decode(sample_token_ids) for sample_token_ids in generated_token_ids]
|
31 |
result1 = re.sub(r'@@.*?@@', '', context_with_response[0])
|
32 |
+
result2 = result1[len(message):]
|
33 |
yield result2.strip()
|
34 |
|
35 |
# Настройка интерфейса Gradio
|