Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -9,9 +9,8 @@ def code_assistant(system_message, chat_history, user_input):
|
|
9 |
if not chat_history:
|
10 |
chat_history.append(("Системное сообщение", system_message))
|
11 |
|
12 |
-
#
|
13 |
-
# Убедитесь, что модель принимает
|
14 |
-
response = model({"inputs": user_input})
|
15 |
|
16 |
# Добавляем пользовательский ввод и ответ модели в историю чата
|
17 |
chat_history.append((user_input, response))
|
|
|
9 |
if not chat_history:
|
10 |
chat_history.append(("Системное сообщение", system_message))
|
11 |
|
12 |
+
# Предположительно, модель должна принимать строку
|
13 |
+
response = model(user_input) # Убедитесь, что модель принимает строку
|
|
|
14 |
|
15 |
# Добавляем пользовательский ввод и ответ модели в историю чата
|
16 |
chat_history.append((user_input, response))
|