Spaces:
Running
Running
update readme
Browse files- app.py +30 -0
- iclr2024_reviews_20231110.csv +0 -0
app.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pandas as pd
|
2 |
+
import gradio as gr
|
3 |
+
|
4 |
+
# Load the CSV file
|
5 |
+
file_path = 'iclr2024_reviews_20231110.csv'
|
6 |
+
df = pd.read_csv(file_path)
|
7 |
+
|
8 |
+
# Define a function to filter the DataFrame based on a search query
|
9 |
+
def search_papers(query=""):
|
10 |
+
if query: # If there is a search query, filter the DataFrame
|
11 |
+
filtered_df = df[df.apply(lambda row: row.astype(str).str.contains(query, case=False).any(), axis=1)]
|
12 |
+
return filtered_df
|
13 |
+
return df # If no query, return the original DataFrame
|
14 |
+
|
15 |
+
with gr.Blocks() as demo:
|
16 |
+
gr.Markdown("# ICLR 2024 Paper Review Explorer")
|
17 |
+
gr.Markdown("Explore and search through the paper reviews for ICLR 2024. The papers are ranked based on their average score and standard deviation. More data and analysis at [GitHub Repository](https://github.com/ranpox/iclr2024-openreview-submissions)")
|
18 |
+
search_bar = gr.Textbox(placeholder="Enter search terms here...", label="Search Reviews")
|
19 |
+
|
20 |
+
# Initialize the reviews table with all the data
|
21 |
+
reviews_table = gr.Dataframe(df)
|
22 |
+
|
23 |
+
# When the search bar changes, update the reviews table with the filtered results
|
24 |
+
search_bar.change(
|
25 |
+
fn=search_papers,
|
26 |
+
inputs=search_bar,
|
27 |
+
outputs=reviews_table
|
28 |
+
)
|
29 |
+
|
30 |
+
demo.launch()
|
iclr2024_reviews_20231110.csv
ADDED
The diff for this file is too large to render.
See raw diff
|
|