Spaces:
Sleeping
Sleeping
change UI layout
Browse files
main.py
CHANGED
@@ -42,18 +42,17 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
|
|
42 |
with gr.Row():
|
43 |
with gr.Column(scale=2):
|
44 |
chatbot = gr.Chatbot()
|
45 |
-
chatbot.style(height=
|
46 |
chatbot.style()
|
47 |
history = gr.State([])
|
48 |
with gr.Column(scale=1):
|
49 |
with gr.Row():
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
submitBtn = gr.Button("提交", variant="primary")
|
57 |
with gr.Row():
|
58 |
from check_proxy import check_proxy
|
59 |
statusDisplay = gr.Markdown(f"Tip: 按Enter提交, 按Shift+Enter换行。当前模型: {LLM_MODEL} \n {check_proxy(proxies)}")
|
@@ -62,7 +61,7 @@ with gr.Blocks(theme=set_theme, analytics_enabled=False) as demo:
|
|
62 |
variant = functional[k]["Color"] if "Color" in functional[k] else "secondary"
|
63 |
functional[k]["Button"] = gr.Button(k, variant=variant)
|
64 |
with gr.Row():
|
65 |
-
gr.Markdown("
|
66 |
with gr.Row():
|
67 |
for k in crazy_functional:
|
68 |
variant = crazy_functional[k]["Color"] if "Color" in crazy_functional[k] else "secondary"
|
|
|
42 |
with gr.Row():
|
43 |
with gr.Column(scale=2):
|
44 |
chatbot = gr.Chatbot()
|
45 |
+
chatbot.style(height=1150)
|
46 |
chatbot.style()
|
47 |
history = gr.State([])
|
48 |
with gr.Column(scale=1):
|
49 |
with gr.Row():
|
50 |
+
txt = gr.Textbox(show_label=False, placeholder="Input question here.").style(container=False)
|
51 |
+
with gr.Row():
|
52 |
+
submitBtn = gr.Button("提交", variant="primary")
|
53 |
+
with gr.Row():
|
54 |
+
resetBtn = gr.Button("重置", variant="secondary"); resetBtn.style(size="sm")
|
55 |
+
stopBtn = gr.Button("停止", variant="secondary"); stopBtn.style(size="sm")
|
|
|
56 |
with gr.Row():
|
57 |
from check_proxy import check_proxy
|
58 |
statusDisplay = gr.Markdown(f"Tip: 按Enter提交, 按Shift+Enter换行。当前模型: {LLM_MODEL} \n {check_proxy(proxies)}")
|
|
|
61 |
variant = functional[k]["Color"] if "Color" in functional[k] else "secondary"
|
62 |
functional[k]["Button"] = gr.Button(k, variant=variant)
|
63 |
with gr.Row():
|
64 |
+
gr.Markdown("注意:以下“红颜色”标识的函数插件需从input区读取路径作为参数.")
|
65 |
with gr.Row():
|
66 |
for k in crazy_functional:
|
67 |
variant = crazy_functional[k]["Color"] if "Color" in crazy_functional[k] else "secondary"
|