Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
update urls for qqmm (#38)
Browse files- add url for qqmm (5fd164df56de7d1c2a089ff2a330f779c316478f)
- fixed refresh issue (bf1a3f7ccd53bab9be62ccbfb9267ce6817e3498)
21 unmodified lines22232421 unmodified linesUniME(LLaVA-OneVision-7B-LoRA-Res336),https://huggingface.co/DeepGlint-AI/UniME-LLaVA-OneVision-7BUniME(LLaVA-1.6-7B-LoRA-LowRes),https://huggingface.co/DeepGlint-AI/UniME-LLaVA-1.6-7BUniME(Phi-3.5-V-LoRA),https://huggingface.co/DeepGlint-AI/UniME-Phi3.5-V-4.2B21 unmodified lines2223242521 unmodified linesUniME(LLaVA-OneVision-7B-LoRA-Res336),https://huggingface.co/DeepGlint-AI/UniME-LLaVA-OneVision-7BUniME(LLaVA-1.6-7B-LoRA-LowRes),https://huggingface.co/DeepGlint-AI/UniME-LLaVA-1.6-7BUniME(Phi-3.5-V-LoRA),https://huggingface.co/DeepGlint-AI/UniME-Phi3.5-V-4.2BQQMM-embed,https://github.com/QQ-MM/QQMM-embed
100 unmodified lines10110210310410510610710821 unmodified lines13013113213313413513613713813914014114214340 unmodified lines184185186187188189100 unmodified linesPlease send us an email at m7su@uwaterloo.ca, attaching the JSON file. We will review your submission and update the leaderboard accordingly."""MODEL_URLS = pd.read_csv("urls.csv")MODEL_URLS = dict(zip(MODEL_URLS['Models'], MODEL_URLS['URL']))def create_hyperlinked_names(df):def convert_url(url, model_name):21 unmodified linesdf['Models'] = df['Models'].apply(add_link_to_model_name)return dfdef get_df():# fetch the leaderboard dataurl = "https://huggingface.co/spaces/TIGER-Lab/MMEB/resolve/main/results.csv"response = requests.get(url, headers={"Authorization": f"Bearer {HF_TOKEN}"})if response.status_code != 200:import syssys.exit(f"Error: {response.status_code}")df = pd.read_csv(io.StringIO(response.text))df.to_csv(CSV_DIR, index=False) # update local filedf['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)df = df.sort_values(by=['Overall'], ascending=False)40 unmodified linesdef refresh_data():df = get_df()return df[COLUMN_NAMES]100 unmodified lines10110210310410510610721 unmodified lines12913013113213313413513613713813914014114214314414514614714814915040 unmodified lines191192193194195196197100 unmodified linesPlease send us an email at m7su@uwaterloo.ca, attaching the JSON file. We will review your submission and update the leaderboard accordingly."""MODEL_URLS = get_urls("urls.csv")def create_hyperlinked_names(df):def convert_url(url, model_name):21 unmodified linesdf['Models'] = df['Models'].apply(add_link_to_model_name)return dfdef fetch_data(url: str) -> pd.DataFrame:# fetch the leaderboard dataif url is None:raise ValueError("URL Not Provided")url = f"https://huggingface.co/spaces/TIGER-Lab/MMEB/resolve/main/{url}"response = requests.get(url, headers={"Authorization": f"Bearer {HF_TOKEN}"})if response.status_code != 200:raise requests.HTTPError(f"Failed to fetch data: HTTP status code {response.status_code}")return pd.read_csv(io.StringIO(response.text))def get_urls(csv: str='urls.csv') -> dict:urls = fetch_data(csv)return dict(zip(urls['Models'], urls['URL']))def get_df(csv="results.csv"):df = fetch_data(csv)df.to_csv(CSV_DIR, index=False) # update local filedf['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)df = df.sort_values(by=['Overall'], ascending=False)40 unmodified linesdef refresh_data():df = get_df()MODEL_URLS = get_urls()return df[COLUMN_NAMES]
urls.csv+1
utils.py+15-7