Spaces:
Sleeping
Sleeping
fix error
Browse files
request_llm/bridge_chatgpt.py
CHANGED
@@ -146,7 +146,7 @@ def predict(inputs, top_p, temperature, chatbot=[], history=[], system_prompt=''
|
|
146 |
if additional_fn is not None:
|
147 |
import core_functional
|
148 |
importlib.reload(core_functional) # 热更新prompt
|
149 |
-
core_functional = core_functional.
|
150 |
if "PreProcess" in core_functional[additional_fn]: inputs = core_functional[additional_fn]["PreProcess"](inputs) # 获取预处理函数(如果有的话)
|
151 |
inputs = core_functional[additional_fn]["Prefix"] + inputs + core_functional[additional_fn]["Suffix"]
|
152 |
|
|
|
146 |
if additional_fn is not None:
|
147 |
import core_functional
|
148 |
importlib.reload(core_functional) # 热更新prompt
|
149 |
+
core_functional = core_functional.get_core_functions()
|
150 |
if "PreProcess" in core_functional[additional_fn]: inputs = core_functional[additional_fn]["PreProcess"](inputs) # 获取预处理函数(如果有的话)
|
151 |
inputs = core_functional[additional_fn]["Prefix"] + inputs + core_functional[additional_fn]["Suffix"]
|
152 |
|
request_llm/bridge_tgui.py
CHANGED
@@ -103,7 +103,7 @@ def predict_tgui(inputs, top_p, temperature, chatbot=[], history=[], system_prom
|
|
103 |
if additional_fn is not None:
|
104 |
import core_functional
|
105 |
importlib.reload(core_functional) # 热更新prompt
|
106 |
-
core_functional = core_functional.
|
107 |
if "PreProcess" in core_functional[additional_fn]: inputs = core_functional[additional_fn]["PreProcess"](inputs) # 获取预处理函数(如果有的话)
|
108 |
inputs = core_functional[additional_fn]["Prefix"] + inputs + core_functional[additional_fn]["Suffix"]
|
109 |
|
|
|
103 |
if additional_fn is not None:
|
104 |
import core_functional
|
105 |
importlib.reload(core_functional) # 热更新prompt
|
106 |
+
core_functional = core_functional.get_core_functions()
|
107 |
if "PreProcess" in core_functional[additional_fn]: inputs = core_functional[additional_fn]["PreProcess"](inputs) # 获取预处理函数(如果有的话)
|
108 |
inputs = core_functional[additional_fn]["Prefix"] + inputs + core_functional[additional_fn]["Suffix"]
|
109 |
|