Update app.py
Browse files
app.py
CHANGED
|
@@ -696,24 +696,6 @@ html_header = """
|
|
| 696 |
</div>
|
| 697 |
"""
|
| 698 |
|
| 699 |
-
with gr.Accordion("How to Use This App", open=False, elem_id="how-to-use"):
|
| 700 |
-
gr.Markdown("""
|
| 701 |
-
### Getting Started:
|
| 702 |
-
1. Enter your OpenAI API key in the field below and click "Set API Key"
|
| 703 |
-
2. Upload multiple PDF research papers (2 or more recommended)
|
| 704 |
-
3. Enter your review question or topic
|
| 705 |
-
4. Check the "Include Tables" option if you want the review to include comparison tables
|
| 706 |
-
5. Click "Generate Systematic Review" to start the process
|
| 707 |
-
6. After generation, you can download the review as HTML
|
| 708 |
-
|
| 709 |
-
### Tips for Best Results:
|
| 710 |
-
- Upload papers that are related to the same research topic or field
|
| 711 |
-
- Be specific in your review question to get more focused results
|
| 712 |
-
- The generated review will follow a systematic structure including research field identification, data extraction, analysis, and conclusions
|
| 713 |
-
- The more papers you upload, the more comprehensive the review will be
|
| 714 |
-
- The review will be formatted as a professional academic paper with proper sections and citations
|
| 715 |
-
""")
|
| 716 |
-
|
| 717 |
html_footer = """
|
| 718 |
<div class="footer">
|
| 719 |
<div class="footer-content">
|
|
@@ -730,6 +712,24 @@ html_footer = """
|
|
| 730 |
|
| 731 |
with gr.Blocks(css=custom_css) as app:
|
| 732 |
gr.HTML(html_header)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 733 |
|
| 734 |
# Store the generated html file path for download
|
| 735 |
html_file_path = gr.State(None)
|
|
|
|
| 696 |
</div>
|
| 697 |
"""
|
| 698 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 699 |
html_footer = """
|
| 700 |
<div class="footer">
|
| 701 |
<div class="footer-content">
|
|
|
|
| 712 |
|
| 713 |
with gr.Blocks(css=custom_css) as app:
|
| 714 |
gr.HTML(html_header)
|
| 715 |
+
|
| 716 |
+
with gr.Accordion("How to Use This App", open=False, elem_id="how-to-use"):
|
| 717 |
+
gr.Markdown("""
|
| 718 |
+
### Getting Started:
|
| 719 |
+
1. Enter your OpenAI API key in the field below and click "Set API Key"
|
| 720 |
+
2. Upload multiple PDF research papers (2 or more recommended)
|
| 721 |
+
3. Enter your review question or topic
|
| 722 |
+
4. Check the "Include Tables" option if you want the review to include comparison tables
|
| 723 |
+
5. Click "Generate Systematic Review" to start the process
|
| 724 |
+
6. After generation, you can download the review as HTML
|
| 725 |
+
|
| 726 |
+
### Tips for Best Results:
|
| 727 |
+
- Upload papers that are related to the same research topic or field
|
| 728 |
+
- Be specific in your review question to get more focused results
|
| 729 |
+
- The generated review will follow a systematic structure including research field identification, data extraction, analysis, and conclusions
|
| 730 |
+
- The more papers you upload, the more comprehensive the review will be
|
| 731 |
+
- The review will be formatted as a professional academic paper with proper sections and citations
|
| 732 |
+
""")
|
| 733 |
|
| 734 |
# Store the generated html file path for download
|
| 735 |
html_file_path = gr.State(None)
|