wenkai commited on
Commit
3e43b5a
·
verified ·
1 Parent(s): bece41e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -203,6 +203,17 @@ def save_feedback(inputs):
203
  return "Thanks your advice!"
204
 
205
 
 
 
 
 
 
 
 
 
 
 
 
206
  # Define the FAPM interface
207
  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.
208
 
 
203
  return "Thanks your advice!"
204
 
205
 
206
+ def yes(message, history):
207
+ return "yes"
208
+
209
+
210
+ def vote(data: gr.LikeData):
211
+ if data.liked:
212
+ print("You upvoted this prediction: " + data.value["value"])
213
+ else:
214
+ print("You downvoted this prediction: " + data.value["value"])
215
+
216
+
217
  # Define the FAPM interface
218
  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.
219