Update app.py
Browse files
app.py
CHANGED
@@ -44,6 +44,7 @@ COLS = [c.name for c in fields(AutoEvalColumn)]
|
|
44 |
TYPES = [c.type for c in fields(AutoEvalColumn)]
|
45 |
|
46 |
def request_model(model_text):
|
|
|
47 |
# Check if the model exists on the Hub
|
48 |
base_model_on_hub, error_msg = is_model_on_hub(model_text)
|
49 |
|
@@ -110,7 +111,7 @@ def request_model(model_text):
|
|
110 |
df_results.to_csv(csv_results, index=False)
|
111 |
|
112 |
# Update the leaderboard DataFrame
|
113 |
-
|
114 |
original_df = df_results.copy()
|
115 |
original_df['Model'] = original_df['model'].apply(lambda x: make_clickable_model(x))
|
116 |
original_df['WER ⬇️'] = original_df['wer'].apply(lambda x: round(x, 2))
|
|
|
44 |
TYPES = [c.type for c in fields(AutoEvalColumn)]
|
45 |
|
46 |
def request_model(model_text):
|
47 |
+
global original_df
|
48 |
# Check if the model exists on the Hub
|
49 |
base_model_on_hub, error_msg = is_model_on_hub(model_text)
|
50 |
|
|
|
111 |
df_results.to_csv(csv_results, index=False)
|
112 |
|
113 |
# Update the leaderboard DataFrame
|
114 |
+
|
115 |
original_df = df_results.copy()
|
116 |
original_df['Model'] = original_df['model'].apply(lambda x: make_clickable_model(x))
|
117 |
original_df['WER ⬇️'] = original_df['wer'].apply(lambda x: round(x, 2))
|