Spaces:
Running
Running
terryyz
commited on
Commit
·
aa2b984
1
Parent(s):
95a116e
No data available
Browse files- ranking.py +2 -2
- voting.py +1 -1
ranking.py
CHANGED
@@ -142,7 +142,7 @@ def update_ranking_display():
|
|
142 |
"""Update ranking display with current data"""
|
143 |
df = load_ranking_data()
|
144 |
if df.empty:
|
145 |
-
return gr.update(value=df), "**Last Updated:** No data available"
|
146 |
|
147 |
# Drop License column if it exists
|
148 |
if 'License' in df.columns:
|
@@ -160,7 +160,7 @@ def force_update_ranking_display():
|
|
160 |
"""Force update ranking data from HuggingFace (for timer)"""
|
161 |
df = load_ranking_data(force_reload=True)
|
162 |
if df.empty:
|
163 |
-
return gr.update(value=df), "**Last Updated:** No data available"
|
164 |
|
165 |
# Drop License column if it exists
|
166 |
if 'License' in df.columns:
|
|
|
142 |
"""Update ranking display with current data"""
|
143 |
df = load_ranking_data()
|
144 |
if df.empty:
|
145 |
+
return gr.update(value=df), "**Last Updated:** No enough data available"
|
146 |
|
147 |
# Drop License column if it exists
|
148 |
if 'License' in df.columns:
|
|
|
160 |
"""Force update ranking data from HuggingFace (for timer)"""
|
161 |
df = load_ranking_data(force_reload=True)
|
162 |
if df.empty:
|
163 |
+
return gr.update(value=df), "**Last Updated:** No enough data available"
|
164 |
|
165 |
# Drop License column if it exists
|
166 |
if 'License' in df.columns:
|
voting.py
CHANGED
@@ -173,7 +173,7 @@ def handle_vote(state0, state1, vote_type):
|
|
173 |
return (
|
174 |
"No output to vote on!",
|
175 |
gr.update(),
|
176 |
-
"**Last Updated:** No data available",
|
177 |
)
|
178 |
|
179 |
# Get all user messages and the last responses
|
|
|
173 |
return (
|
174 |
"No output to vote on!",
|
175 |
gr.update(),
|
176 |
+
"**Last Updated:** No enough data available",
|
177 |
)
|
178 |
|
179 |
# Get all user messages and the last responses
|