Eran Fainman
commited on
Commit
·
827117f
1
Parent(s):
f3e6dfe
Add application file
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import streamlit as st
|
|
4 |
import huggingface_hub as hh
|
5 |
|
6 |
st.set_page_config(page_title="RecTour2024 - Booking.com Review Ranking Challenge Leaderboard", layout="wide")
|
7 |
-
st.title("RecTour2024 Leaderboard")
|
8 |
|
9 |
# read files from HF
|
10 |
RESULTS_REPO = "Booking-com/results"
|
@@ -15,7 +15,7 @@ EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
|
|
15 |
API = hh.HfApi(token=TOKEN)
|
16 |
|
17 |
hh.snapshot_download(
|
18 |
-
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type=
|
19 |
token=TOKEN
|
20 |
)
|
21 |
|
|
|
4 |
import huggingface_hub as hh
|
5 |
|
6 |
st.set_page_config(page_title="RecTour2024 - Booking.com Review Ranking Challenge Leaderboard", layout="wide")
|
7 |
+
st.title("🏆 RecTour2024 Leaderboard")
|
8 |
|
9 |
# read files from HF
|
10 |
RESULTS_REPO = "Booking-com/results"
|
|
|
15 |
API = hh.HfApi(token=TOKEN)
|
16 |
|
17 |
hh.snapshot_download(
|
18 |
+
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type=None, tqdm_class=None, etag_timeout=30,
|
19 |
token=TOKEN
|
20 |
)
|
21 |
|