Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,10 @@ from bs4 import BeautifulSoup
|
|
3 |
import pandas as pd
|
4 |
import gradio as gr
|
5 |
import time
|
|
|
|
|
|
|
|
|
6 |
|
7 |
def get_rank_papers(url,progress=gr.Progress(track_tqdm=True)):
|
8 |
base_url = "https://paperswithcode.com"
|
@@ -54,20 +58,6 @@ def get_rank_papers(url,progress=gr.Progress(track_tqdm=True)):
|
|
54 |
print('Data retrieval complete')
|
55 |
return data_list
|
56 |
|
57 |
-
|
58 |
-
import requests
|
59 |
-
from bs4 import BeautifulSoup
|
60 |
-
import pandas as pd
|
61 |
-
import gradio as gr
|
62 |
-
import time
|
63 |
-
import os
|
64 |
-
import json
|
65 |
-
from datetime import datetime
|
66 |
-
|
67 |
-
def get_rank_papers(url, progress=gr.Progress(track_tqdm=True)):
|
68 |
-
# ... (keep the existing get_rank_papers function as is)
|
69 |
-
# This function remains unchanged from your original code
|
70 |
-
|
71 |
def load_cached_data(cache_file):
|
72 |
if os.path.exists(cache_file):
|
73 |
with open(cache_file, 'r') as f:
|
|
|
3 |
import pandas as pd
|
4 |
import gradio as gr
|
5 |
import time
|
6 |
+
import os
|
7 |
+
import json
|
8 |
+
from datetime import datetime
|
9 |
+
|
10 |
|
11 |
def get_rank_papers(url,progress=gr.Progress(track_tqdm=True)):
|
12 |
base_url = "https://paperswithcode.com"
|
|
|
58 |
print('Data retrieval complete')
|
59 |
return data_list
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
def load_cached_data(cache_file):
|
62 |
if os.path.exists(cache_file):
|
63 |
with open(cache_file, 'r') as f:
|