Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
ab58f48
1
Parent(s):
27cb081
Enhance instructions and privacy policy in the interface, and improve feedback components for paper analysis
Browse files
app.py
CHANGED
@@ -514,7 +514,32 @@ def create_interface():
|
|
514 |
"""
|
515 |
)
|
516 |
|
517 |
-
with gr.Accordion(label="Instructions", open=False):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
gr.Markdown(
|
519 |
"""
|
520 |
1. **Enter Abstract**: Paste an abstract or describe your research details in the text box.
|
@@ -564,17 +589,22 @@ def create_interface():
|
|
564 |
show_copy_button=True,
|
565 |
key="paper_details",
|
566 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
567 |
paper_feedback = gr.Radio(
|
568 |
-
["π Good Match", "π Poor Match"],
|
569 |
-
label="Is this paper a good match?",
|
570 |
-
visible=False
|
571 |
)
|
572 |
paper_comment = gr.Textbox(
|
573 |
label="Additional feedback on this paper match (optional)",
|
574 |
visible=False
|
575 |
)
|
576 |
flag_paper_btn = gr.Button("Submit Paper Feedback", visible=False)
|
577 |
-
|
578 |
with gr.Column(scale=1):
|
579 |
analysis_output = gr.Markdown(
|
580 |
value="# Synergy Analysis",
|
@@ -603,7 +633,7 @@ def create_interface():
|
|
603 |
# Show feedback component
|
604 |
def show_feedback():
|
605 |
return gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
606 |
-
|
607 |
# Hide feedback component
|
608 |
def hide_feedback():
|
609 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
@@ -634,7 +664,7 @@ def create_interface():
|
|
634 |
outputs=[selected_paper_state],
|
635 |
api_name=False,
|
636 |
).then(
|
637 |
-
lambda: gr.update(
|
638 |
outputs=[analyze_btn],
|
639 |
api_name=False,
|
640 |
).then(
|
|
|
514 |
"""
|
515 |
)
|
516 |
|
517 |
+
with gr.Accordion(label="Instructions and Privacy Policy", open=False):
|
518 |
+
gr.Markdown(
|
519 |
+
"""
|
520 |
+
This tool helps you find papers that are synergistic with your research.
|
521 |
+
It uses AI to analyze the connections between papers and provides insights into their potential synergies.
|
522 |
+
|
523 |
+
Please ask any questions or provide feedback on the tool to help us improve it by starting a discussion on
|
524 |
+
the [Community Tab](https://huggingface.co/spaces/nomadicsynth/research-compass/discussions).
|
525 |
+
|
526 |
+
|
527 |
+
**Privacy Policy**: The abstract or research description you provide will be included in any feedback
|
528 |
+
you submit and may be used to improve the model, and published in a public dataset.
|
529 |
+
Please ensure that you have the right to share this information.
|
530 |
+
By submitting feedback, you agree to the use of this information for research purposes.
|
531 |
+
Your feedback will be used to improve the model and the research process.
|
532 |
+
Please do not include any personally identifiable information, proprietary or sensitive information,
|
533 |
+
or any other information you do not want to share.
|
534 |
+
|
535 |
+
|
536 |
+
**Disclaimer**: This tool is in alpha testing and is not intended for production use.
|
537 |
+
The results are not guaranteed to be accurate or reliable. Use at your own risk.
|
538 |
+
The tool is provided "as is" without any warranties or guarantees.
|
539 |
+
The developers are not responsible for any consequences of using this tool.
|
540 |
+
By using this tool, you agree to the terms and conditions outlined in this disclaimer.
|
541 |
+
"""
|
542 |
+
)
|
543 |
gr.Markdown(
|
544 |
"""
|
545 |
1. **Enter Abstract**: Paste an abstract or describe your research details in the text box.
|
|
|
589 |
show_copy_button=True,
|
590 |
key="paper_details",
|
591 |
)
|
592 |
+
analyze_btn = gr.Button("Analyze Connections", variant="primary", visible=False)
|
593 |
+
gr.Markdown(
|
594 |
+
"""
|
595 |
+
Please provide feedback on the paper match and analysis to improve the model.
|
596 |
+
"""
|
597 |
+
)
|
598 |
+
# Add thumbs up/down for paper match
|
599 |
paper_feedback = gr.Radio(
|
600 |
+
["π Good Match", "π Poor Match"], label="Is this paper a good match?", visible=False
|
|
|
|
|
601 |
)
|
602 |
paper_comment = gr.Textbox(
|
603 |
label="Additional feedback on this paper match (optional)",
|
604 |
visible=False
|
605 |
)
|
606 |
flag_paper_btn = gr.Button("Submit Paper Feedback", visible=False)
|
607 |
+
|
608 |
with gr.Column(scale=1):
|
609 |
analysis_output = gr.Markdown(
|
610 |
value="# Synergy Analysis",
|
|
|
633 |
# Show feedback component
|
634 |
def show_feedback():
|
635 |
return gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
636 |
+
|
637 |
# Hide feedback component
|
638 |
def hide_feedback():
|
639 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
|
|
|
664 |
outputs=[selected_paper_state],
|
665 |
api_name=False,
|
666 |
).then(
|
667 |
+
lambda: gr.update(visible=False), # Disable analyze button until paper selected
|
668 |
outputs=[analyze_btn],
|
669 |
api_name=False,
|
670 |
).then(
|