Skip to content

Commit aa475a1

Browse files
authored
Merge branch 'binary-husky:master' into master
2 parents 3288694 + be83907 commit aa475a1

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def encode_plugin_info(k, plugin)->str:
3434

3535
def main():
3636
import gradio as gr
37-
if gr.__version__ not in ['3.32.12', '3.32.13']:
37+
if gr.__version__ not in ['3.32.14', '3.32.13']:
3838
raise ModuleNotFoundError("使用项目内置Gradio获取最优体验! 请运行 `pip install -r requirements.txt` 指令安装内置Gradio及其他依赖, 详情信息见requirements.txt.")
3939

4040
# 一些基础工具

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
https://public.agent-matrix.com/publish/gradio-3.32.13-py3-none-any.whl
1+
https://public.agent-matrix.com/publish/gradio-3.32.14-py3-none-any.whl
22
fastapi==0.110
33
gradio-client==0.8
44
pypdf2==2.12.1

themes/common.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,15 @@ async function clear_conversation(a, b, c) {
11841184
update_conversation_metadata();
11851185
let stopButton = document.getElementById("elem_stop");
11861186
stopButton.click();
1187+
// Save back to local storage
1188+
try {
1189+
const EVENT_NAME = "gptac_reset_btn_clicked";
1190+
window.dispatchEvent(
1191+
new CustomEvent(EVENT_NAME, {
1192+
detail: ""
1193+
})
1194+
);
1195+
} catch (e) {}
11871196
return reset_conversation(a, b);
11881197
}
11891198

0 commit comments

Comments
 (0)