jackrui commited on
Commit
f4155e6
·
1 Parent(s): 4b12912

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +31 -2
app.py CHANGED
@@ -83,7 +83,7 @@ model.load_state_dict(torch.load("best_model.pth", map_location=torch.device('cp
83
  if __name__ == "__main__":
84
  title = """<h1 align="center">🔥AMP Sequence Detector</h1>"""
85
  css = ".json {height: 527px; overflow: scroll;} .json-holder {height: 527px; overflow: scroll;}"
86
- theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="blue", neutral_hue="lime",
87
  text_size=gr.themes.sizes.text_lg)
88
  with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""",
89
  theme=theme) as demo:
@@ -95,7 +95,11 @@ if __name__ == "__main__":
95
  gr.Markdown(
96
  "<p align='center' style='font-size: 20px;'>🔥Welcome to Antimicrobial Peptide Recognition Model. See our <a href='https://github.com/wrab12/diff-amp'>Project</a></p>")
97
  gr.HTML(
98
- '''<center><a href="https://huggingface.co/spaces/jackrui/diff-amp-AMP_Sequence_Detector?duplicate=true"><img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a></center>''')
 
 
 
 
99
  gr.HTML(
100
  '''<center>🌟Note: This is an antimicrobial peptide recognition model derived from Diff-AMP, which is a branch of a comprehensive system integrating generation, recognition, and optimization. In this recognition model, you can simply input a sequence, and it will predict whether it is an antimicrobial peptide. Due to limited website capacity, we can only perform simple predictions.
101
  If you require large-scale computations, please contact my email at [email protected]. Feel free to reach out if you have any questions or inquiries.</center>''')
@@ -126,5 +130,30 @@ if __name__ == "__main__":
126
  )
127
  gr.Markdown(
128
  "<p align='center'><img src='https://pic4.zhimg.com/v2-eb2a7c0e746e67d1768090eec74f6787_b.jpg'></p>")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130
  demo.launch()
 
83
  if __name__ == "__main__":
84
  title = """<h1 align="center">🔥AMP Sequence Detector</h1>"""
85
  css = ".json {height: 527px; overflow: scroll;} .json-holder {height: 527px; overflow: scroll;}"
86
+ theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="blue", neutral_hue="green",
87
  text_size=gr.themes.sizes.text_lg)
88
  with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;} #chatbot {height: 520px; overflow: auto;}""",
89
  theme=theme) as demo:
 
95
  gr.Markdown(
96
  "<p align='center' style='font-size: 20px;'>🔥Welcome to Antimicrobial Peptide Recognition Model. See our <a href='https://github.com/wrab12/diff-amp'>Project</a></p>")
97
  gr.HTML(
98
+ '''<center>
99
+ <a href="https://huggingface.co/spaces/jackrui/diff-amp-AMP_Sequence_Detector?duplicate=true">
100
+ <img src="https://bit.ly/3gLdBN6" alt="Duplicate Space">
101
+ </a>
102
+ </center>''')
103
  gr.HTML(
104
  '''<center>🌟Note: This is an antimicrobial peptide recognition model derived from Diff-AMP, which is a branch of a comprehensive system integrating generation, recognition, and optimization. In this recognition model, you can simply input a sequence, and it will predict whether it is an antimicrobial peptide. Due to limited website capacity, we can only perform simple predictions.
105
  If you require large-scale computations, please contact my email at [email protected]. Feel free to reach out if you have any questions or inquiries.</center>''')
 
130
  )
131
  gr.Markdown(
132
  "<p align='center'><img src='https://pic4.zhimg.com/v2-eb2a7c0e746e67d1768090eec74f6787_b.jpg'></p>")
133
+ gr.Markdown(
134
+ "<p align='center' style='font-size: 20px;'>Related job links in the same series: <a href='https://huggingface.co/spaces/jackrui/diff-amp-antimicrobial_peptide_generation'>diff-amp-antimicrobial_peptide_generation</a> ,<a href='https://huggingface.co/spaces/jackrui/Diff-AMP-property-prediction-model'>Diff-AMP-property-prediction-model</a></p>")
135
+ gr.Markdown('''📝 **Citation**
136
+ If our work is useful for your research, please consider citing:
137
+ ```
138
+ waiting...
139
+ ```
140
+ 📋 **License**
141
+ This project is licensed under <a rel="license" href="https://github.com/sczhou/CodeFormer/blob/master/LICENSE">S-Lab License 1.0</a>.
142
+ Redistribution and use for non-commercial purposes should follow this license.
143
+ 📧 **Contact**
144
+ If you have any questions, please feel free to reach me out at <b>[email protected]</b>.
145
+ 🤗 **Find Me:**
146
+ <style type="text/css">
147
+ td {
148
+ padding-right: 0px !important;
149
+ }
150
+ </style>
151
+ <table>
152
+ <tr>
153
+ <td><a href="https://github.com/wrab12"><img style="margin:-0.8em 0 2em 0" src="https://img.shields.io/github/followers/wrab12?style=social" alt="Github Follow"></a></td>
154
+
155
+ </tr>
156
+ </table>
157
+ ''')
158
 
159
  demo.launch()