Spaces:
Runtime error
Runtime error
Update core_functional.py
Browse files- core_functional.py +2 -1
core_functional.py
CHANGED
@@ -146,10 +146,11 @@ def get_core_functions():
|
|
146 |
|
147 |
|
148 |
def handle_core_functionality(additional_fn, inputs, history, chatbot):
|
149 |
-
import core_functional
|
150 |
importlib.reload(core_functional) # 热更新prompt
|
151 |
core_functional = core_functional.get_core_functions()
|
152 |
addition = chatbot._cookies['customize_fn_overwrite']
|
|
|
153 |
if additional_fn in addition:
|
154 |
# 自定义功能
|
155 |
inputs = addition[additional_fn]["Prefix"] + inputs + addition[additional_fn]["Suffix"]
|
|
|
146 |
|
147 |
|
148 |
def handle_core_functionality(additional_fn, inputs, history, chatbot):
|
149 |
+
import core_functional,logging
|
150 |
importlib.reload(core_functional) # 热更新prompt
|
151 |
core_functional = core_functional.get_core_functions()
|
152 |
addition = chatbot._cookies['customize_fn_overwrite']
|
153 |
+
logging.warning('Q:%s' + 'A:%s', inputs, history)
|
154 |
if additional_fn in addition:
|
155 |
# 自定义功能
|
156 |
inputs = addition[additional_fn]["Prefix"] + inputs + addition[additional_fn]["Suffix"]
|