Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -86,9 +86,9 @@ def reload_gradio_new():
|
|
86 |
return len(rank_paper_df),rank_paper
|
87 |
|
88 |
|
89 |
-
def
|
90 |
# Retrieve rank papers
|
91 |
-
print('Retrieving data ..
|
92 |
rank_paper_df = get_rank_papers(url="https://paperswithcode.com/greatest")
|
93 |
rank_paper_df = dict(sorted(rank_paper_df.items(), key=lambda x: x[1]['Github Star'], reverse=True))
|
94 |
rank_paper_df = pd.DataFrame(rank_paper_df).T
|
@@ -114,7 +114,7 @@ with gr.Blocks() as demo:
|
|
114 |
output = [gr.Textbox(label="Number of Papers Fetch"),
|
115 |
gr.HTML()]
|
116 |
button.click(fn=reload_gradio_new, inputs=None, outputs=output)
|
117 |
-
with gr.Tab("
|
118 |
button = gr.Button("Load Leaderboard")
|
119 |
output = [gr.Textbox(label="Number of Papers Fetch"),
|
120 |
gr.HTML()]
|
|
|
86 |
return len(rank_paper_df),rank_paper
|
87 |
|
88 |
|
89 |
+
def reload_gradio_greatest():
|
90 |
# Retrieve rank papers
|
91 |
+
print('Retrieving data .. greatest papers')
|
92 |
rank_paper_df = get_rank_papers(url="https://paperswithcode.com/greatest")
|
93 |
rank_paper_df = dict(sorted(rank_paper_df.items(), key=lambda x: x[1]['Github Star'], reverse=True))
|
94 |
rank_paper_df = pd.DataFrame(rank_paper_df).T
|
|
|
114 |
output = [gr.Textbox(label="Number of Papers Fetch"),
|
115 |
gr.HTML()]
|
116 |
button.click(fn=reload_gradio_new, inputs=None, outputs=output)
|
117 |
+
with gr.Tab("Greatest Papers"):
|
118 |
button = gr.Button("Load Leaderboard")
|
119 |
output = [gr.Textbox(label="Number of Papers Fetch"),
|
120 |
gr.HTML()]
|