Spaces:
Sleeping
Sleeping
Keldos commited on
Commit ·
8085880
1
Parent(s): ac15133
[WIP] 加入最新版本信息
Browse files- ChuanhuChatbot.py +1 -0
- assets/html/update.html +9 -0
ChuanhuChatbot.py
CHANGED
|
@@ -38,6 +38,7 @@ with gr.Blocks(css=customCSS, theme=small_and_beautiful_theme) as demo:
|
|
| 38 |
status_display = gr.Markdown(get_geoip(), elem_id="status_display")
|
| 39 |
with gr.Row(elem_id="float_display"):
|
| 40 |
user_info = gr.Markdown(value="getting user info...", elem_id="user_info")
|
|
|
|
| 41 |
|
| 42 |
with gr.Row().style(equal_height=True):
|
| 43 |
with gr.Column(scale=5):
|
|
|
|
| 38 |
status_display = gr.Markdown(get_geoip(), elem_id="status_display")
|
| 39 |
with gr.Row(elem_id="float_display"):
|
| 40 |
user_info = gr.Markdown(value="getting user info...", elem_id="user_info")
|
| 41 |
+
update_info = gr.HTML(get_html("update.html").format(current_version=repo_html()))
|
| 42 |
|
| 43 |
with gr.Row().style(equal_height=True):
|
| 44 |
with gr.Column(scale=5):
|
assets/html/update.html
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<div id="check-chuanhu-update">
|
| 2 |
+
<p style="font-size: 0.5rem;">
|
| 3 |
+
当前版本: <span id="currentVersion">{current_version}</span>
|
| 4 |
+
</p>
|
| 5 |
+
<p style="font-size: 0.5rem;">
|
| 6 |
+
最新版本: <a href="https://github.com/gaizhenbiao/chuanhuchatgpt/releases" target="_blank"
|
| 7 |
+
id="latestVersion">正在获取...</a>
|
| 8 |
+
</p>
|
| 9 |
+
</div>
|