This commit is contained in:
binary-husky 2024-02-06 17:59:09 +08:00
parent c27e559f10
commit 6c13bb7b46
2 changed files with 27 additions and 27 deletions

View File

@ -15,7 +15,7 @@ help_menu_description = \
def main(): def main():
import gradio as gr import gradio as gr
if gr.__version__ not in ['3.32.6', '3.32.7']: if gr.__version__ not in ['3.32.6', '3.32.7', '3.32.8']:
raise ModuleNotFoundError("使用项目内置Gradio获取最优体验! 请运行 `pip install -r requirements.txt` 指令安装内置Gradio及其他依赖, 详情信息见requirements.txt.") raise ModuleNotFoundError("使用项目内置Gradio获取最优体验! 请运行 `pip install -r requirements.txt` 指令安装内置Gradio及其他依赖, 详情信息见requirements.txt.")
from request_llms.bridge_all import predict from request_llms.bridge_all import predict
from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, load_chat_cookies, DummyWith from toolbox import format_io, find_free_port, on_file_uploaded, on_report_generated, get_conf, ArgsGeneralWrapper, load_chat_cookies, DummyWith

View File

@ -349,7 +349,7 @@ function get_elements(consider_state_panel = false) {
var chatbot_height = chatbot.style.height; var chatbot_height = chatbot.style.height;
// 交换输入区位置,使得输入区始终可用 // 交换输入区位置,使得输入区始终可用
if (!swapped) { if (!swapped) {
if (panel1.top != 0 && (panel1.bottom + panel1.top) / 2 < 0) { swap_input_area(); } if (panel1.top != 0 && (0.9 * panel1.bottom + 0.1 * panel1.top) < 0) { swap_input_area(); }
} }
else if (swapped) { else if (swapped) {
if (panel2.top != 0 && panel2.top > 0) { swap_input_area(); } if (panel2.top != 0 && panel2.top > 0) { swap_input_area(); }