user commited on
Commit
5c18653
1 Parent(s): 0d0714c
Files changed (1) hide show
  1. app.py +1 -1
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(a):]
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