wenkai commited on
Commit
d87c732
·
verified ·
1 Parent(s): 106f1cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -201,7 +201,7 @@ def save_feedback(inputs):
201
  with open('feedback.txt', 'a+') as f:
202
  f.write(inputs+'\n')
203
  return "Thanks your advice!"
204
-
205
 
206
  feedback_data = []
207
  def chatbot_respond(message, history=[]):
@@ -219,15 +219,12 @@ def downvote(vote_id):
219
  print(f"Current feedback data: {feedback_data}")
220
  return "You disliked this prediction"
221
 
222
-
223
  # Define the FAPM interface
224
  description = """Quick demonstration of the FAPM model for protein function prediction. Upload an protein sequence to generate a function description. Modify the Prompt to provide the taxonomy information.
225
-
226
  Our paper is available at [BioRxiv](https://www.biorxiv.org/content/10.1101/2024.05.07.593067v1)
227
-
228
  The model used in this app is available at [Hugging Face Model Hub](https://huggingface.co/wenkai/FAPM) and the source code can be found on [GitHub](https://github.com/xiangwenkai/FAPM/tree/main).
229
-
230
- Thanks for the support from ProtonUnfold Tech.  Co., Ltd (https://www.protonunfold.com/)."""
231
 
232
  # iface = gr.Interface(
233
  # fn=generate_caption,
@@ -321,5 +318,3 @@ with gr.Blocks(css=css) as demo:
321
  feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
322
 
323
  demo.launch(debug=True)
324
-
325
-
 
201
  with open('feedback.txt', 'a+') as f:
202
  f.write(inputs+'\n')
203
  return "Thanks your advice!"
204
+
205
 
206
  feedback_data = []
207
  def chatbot_respond(message, history=[]):
 
219
  print(f"Current feedback data: {feedback_data}")
220
  return "You disliked this prediction"
221
 
222
+
223
  # Define the FAPM interface
224
  description = """Quick demonstration of the FAPM model for protein function prediction. Upload an protein sequence to generate a function description. Modify the Prompt to provide the taxonomy information.
 
225
  Our paper is available at [BioRxiv](https://www.biorxiv.org/content/10.1101/2024.05.07.593067v1)
 
226
  The model used in this app is available at [Hugging Face Model Hub](https://huggingface.co/wenkai/FAPM) and the source code can be found on [GitHub](https://github.com/xiangwenkai/FAPM/tree/main).
227
+ Thanks for the support from ProtonUnfold Tech. Co., Ltd (https://www.protonunfold.com/)."""
 
228
 
229
  # iface = gr.Interface(
230
  # fn=generate_caption,
 
318
  feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
319
 
320
  demo.launch(debug=True)