Update app.py
Browse files
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,7 +219,7 @@ 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 |
Our paper is available at [BioRxiv](https://www.biorxiv.org/content/10.1101/2024.05.07.593067v1)
|
@@ -317,4 +317,4 @@ with gr.Blocks(css=css) as demo:
|
|
317 |
downvote_button.click(downvote, input_protein, vote_markdown)
|
318 |
feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
|
319 |
|
320 |
-
demo.launch(debug=True)
|
|
|
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)
|
|
|
317 |
downvote_button.click(downvote, input_protein, vote_markdown)
|
318 |
feedback_btn.click(save_feedback, [inputs], [feedback_markdown])
|
319 |
|
320 |
+
demo.launch(debug=True)
|