Update app.py
Browse files
app.py
CHANGED
|
@@ -64,6 +64,9 @@ dataset_info = """
|
|
| 64 |
This dataset contains a subset of ArXiv papers with the "cs.LG" tag, indicating that the paper is about Machine Learning. The core dataset is filtered from the full ArXiv dataset hosted on Kaggle: [ArXiv Dataset on Kaggle](https://www.kaggle.com/datasets/Cornell-University/arxiv). The original dataset contains roughly 2 million papers, and this dataset contains approximately 100,000 papers after category filtering.
|
| 65 |
|
| 66 |
The dataset is maintained by making requests to the ArXiv API. The current iteration only includes the title and abstract of each paper.
|
|
|
|
|
|
|
|
|
|
| 67 |
"""
|
| 68 |
|
| 69 |
|
|
@@ -74,7 +77,22 @@ iface = gr.Interface(
|
|
| 74 |
outputs="markdown",
|
| 75 |
title="Semantic Search in ArXiv ML Papers",
|
| 76 |
description="Enter a query to find relevant ML papers from the ArXiv dataset.",
|
| 77 |
-
article=dataset_info
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
)
|
| 79 |
|
| 80 |
# Launch the interface
|
|
|
|
| 64 |
This dataset contains a subset of ArXiv papers with the "cs.LG" tag, indicating that the paper is about Machine Learning. The core dataset is filtered from the full ArXiv dataset hosted on Kaggle: [ArXiv Dataset on Kaggle](https://www.kaggle.com/datasets/Cornell-University/arxiv). The original dataset contains roughly 2 million papers, and this dataset contains approximately 100,000 papers after category filtering.
|
| 65 |
|
| 66 |
The dataset is maintained by making requests to the ArXiv API. The current iteration only includes the title and abstract of each paper.
|
| 67 |
+
|
| 68 |
+
**Dataset Source:** The dataset is sourced from Hugging Face: [CShorten/ML-ArXiv-Papers](https://huggingface.co/datasets/CShorten/ML-ArXiv-Papers).
|
| 69 |
+
|
| 70 |
"""
|
| 71 |
|
| 72 |
|
|
|
|
| 77 |
outputs="markdown",
|
| 78 |
title="Semantic Search in ArXiv ML Papers",
|
| 79 |
description="Enter a query to find relevant ML papers from the ArXiv dataset.",
|
| 80 |
+
article=dataset_info,
|
| 81 |
+
theme="huggingface", # Use a built-in theme
|
| 82 |
+
css="""
|
| 83 |
+
body {
|
| 84 |
+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
| 85 |
+
background-color: #FDF6E3; /* Warm background color */
|
| 86 |
+
color: #333333; /* Text color */
|
| 87 |
+
}
|
| 88 |
+
.input-textbox {
|
| 89 |
+
background-color: #FFFAF0; /* Lighter warm input box */
|
| 90 |
+
color: #333333; /* Input text color */
|
| 91 |
+
}
|
| 92 |
+
h1, h2, h3, h4, h5, h6 {
|
| 93 |
+
color: #D2691E; /* Warm, inviting heading color */
|
| 94 |
+
}
|
| 95 |
+
"""
|
| 96 |
)
|
| 97 |
|
| 98 |
# Launch the interface
|