change info from md to html
Browse files- app.py +2 -2
- static/gr_head.md +0 -11
- static/gr_info.html +53 -0
app.py
CHANGED
|
@@ -130,7 +130,7 @@ def render_cache(structure_cache):
|
|
| 130 |
|
| 131 |
with gr.Blocks() as demo:
|
| 132 |
gr.HTML(get_text_content("static/gr_head.html"))
|
| 133 |
-
gr.
|
| 134 |
structure_cache = gr.State(value={"structure_str": None, "summary": None, "entity_color_dict": None})
|
| 135 |
|
| 136 |
with gr.Tab("Single Structure"):
|
|
@@ -158,7 +158,7 @@ with gr.Blocks() as demo:
|
|
| 158 |
|
| 159 |
with gr.Tab("Multi Structure"):
|
| 160 |
pass
|
| 161 |
-
|
| 162 |
debug_text = gr.Textbox(label="调试信息", interactive=False)
|
| 163 |
|
| 164 |
run_btn.click(
|
|
|
|
| 130 |
|
| 131 |
with gr.Blocks() as demo:
|
| 132 |
gr.HTML(get_text_content("static/gr_head.html"))
|
| 133 |
+
gr.HTML(get_text_content("static/gr_info.html"))
|
| 134 |
structure_cache = gr.State(value={"structure_str": None, "summary": None, "entity_color_dict": None})
|
| 135 |
|
| 136 |
with gr.Tab("Single Structure"):
|
|
|
|
| 158 |
|
| 159 |
with gr.Tab("Multi Structure"):
|
| 160 |
pass
|
| 161 |
+
|
| 162 |
debug_text = gr.Textbox(label="调试信息", interactive=False)
|
| 163 |
|
| 164 |
run_btn.click(
|
static/gr_head.md
DELETED
|
@@ -1,11 +0,0 @@
|
|
| 1 |
-
# Thanks for using BindAna v0.5
|
| 2 |
-
|
| 3 |
-
A lite gradio web app for easy binding site searching.
|
| 4 |
-
|
| 5 |
-
使用方法:上传pdb文件,选择要分析位点的实体(至少两个),点击添加,可在右侧文本栏看到当前选择项目,选择结束点解分析按钮输出结果,位点信息可在下方`调试信息`栏查看。
|
| 6 |
-
<br>
|
| 7 |
-
<div align="right" style="font-size: 1.1em;">
|
| 8 |
-
<em>developed by <strong>Fanding Xu</strong></em>
|
| 9 |
-
<br>
|
| 10 |
-
<em>powered by gradio
|
| 11 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static/gr_info.html
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="zh-cn">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>BindAna v0.5</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: Arial, sans-serif;
|
| 10 |
+
line-height: 1.6;
|
| 11 |
+
margin: 20px;
|
| 12 |
+
background-color: #f9f9f9;
|
| 13 |
+
color: #333;
|
| 14 |
+
}
|
| 15 |
+
h1 {
|
| 16 |
+
color: #2c3e50;
|
| 17 |
+
display: inline-block;
|
| 18 |
+
}
|
| 19 |
+
.header {
|
| 20 |
+
display: flex;
|
| 21 |
+
justify-content: space-between;
|
| 22 |
+
align-items: center;
|
| 23 |
+
}
|
| 24 |
+
.instructions {
|
| 25 |
+
margin: 20px 0;
|
| 26 |
+
padding: 15px;
|
| 27 |
+
background-color: #eaf2f8;
|
| 28 |
+
border-left: 5px solid #3498db;
|
| 29 |
+
}
|
| 30 |
+
.footer {
|
| 31 |
+
font-size: 1.1em;
|
| 32 |
+
color: #7f8c8d;
|
| 33 |
+
}
|
| 34 |
+
.footer strong {
|
| 35 |
+
color: #2c3e50;
|
| 36 |
+
}
|
| 37 |
+
</style>
|
| 38 |
+
</head>
|
| 39 |
+
<body>
|
| 40 |
+
<div class="header">
|
| 41 |
+
<h1>Thanks for using BindAna v0.5</h1>
|
| 42 |
+
<div class="footer">
|
| 43 |
+
<em>A lite gradio app developed by <strong>Fanding Xu</strong></em>
|
| 44 |
+
<!-- <br>
|
| 45 |
+
<em>powered by gradio</em> -->
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
<!-- <p>A lite gradio web app for easy binding site searching.</p> -->
|
| 49 |
+
<div class="instructions">
|
| 50 |
+
<p>使用方法:上传 pdb/cif/ent 文件,选择要分析位点的实体(至少两个,可在右侧文本栏看到当前选择项目,选择结束点解分析按钮输出结果,位点信息可在下方 <code>调试信息</code> 栏查看。</p>
|
| 51 |
+
</div>
|
| 52 |
+
</body>
|
| 53 |
+
</html>
|