Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
|
15 |
|
16 |
# coding=utf-8
|
17 |
-
# Copyright 2025 The ACC Team Authors
|
18 |
#
|
19 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
20 |
# you may not use this file except in compliance with the License.
|
@@ -1363,7 +1363,7 @@ def advanced_text_generation(input_vector):
|
|
1363 |
|
1364 |
def chat(user_input, history=[]):
|
1365 |
print("FiPhi-NeuralMark ACC Initialized")
|
1366 |
-
base_length =
|
1367 |
|
1368 |
# Process user input
|
1369 |
user_input_tokens = user_input.split()
|
@@ -1374,7 +1374,7 @@ def chat(user_input, history=[]):
|
|
1374 |
|
1375 |
# Generate the response (only one response generated here)
|
1376 |
response = advanced_text_generation(input_vector)
|
1377 |
-
response = response[:
|
1378 |
|
1379 |
# Clear previous history and only store the current user input and response
|
1380 |
history = [{"role": "user", "content": user_input}, {"role": "assistant", "content": response}]
|
|
|
14 |
|
15 |
|
16 |
# coding=utf-8
|
17 |
+
# Copyright 2025 The ACC Team Authors
|
18 |
#
|
19 |
# Licensed under the Apache License, Version 2.0 (the "License");
|
20 |
# you may not use this file except in compliance with the License.
|
|
|
1363 |
|
1364 |
def chat(user_input, history=[]):
|
1365 |
print("FiPhi-NeuralMark ACC Initialized")
|
1366 |
+
base_length = 1
|
1367 |
|
1368 |
# Process user input
|
1369 |
user_input_tokens = user_input.split()
|
|
|
1374 |
|
1375 |
# Generate the response (only one response generated here)
|
1376 |
response = advanced_text_generation(input_vector)
|
1377 |
+
response = response[:1]
|
1378 |
|
1379 |
# Clear previous history and only store the current user input and response
|
1380 |
history = [{"role": "user", "content": user_input}, {"role": "assistant", "content": response}]
|