Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
cf880c9
1
Parent(s):
2e3f29e
Remove retrieval_results.json and update results directory path in load_retrieval_results function
Browse files- retrieval_results.json +0 -18
- utils.py +8 -8
retrieval_results.json
DELETED
@@ -1,18 +0,0 @@
|
|
1 |
-
[
|
2 |
-
{
|
3 |
-
"Model": "intfloat/multilingual-e5-large-instruct",
|
4 |
-
"Revision": "main",
|
5 |
-
"Precision": "f16",
|
6 |
-
"Task": "Retriever",
|
7 |
-
"Num Downloads": 365122,
|
8 |
-
"Num Likes": 279,
|
9 |
-
"License": "mit",
|
10 |
-
"Model Size": 560,
|
11 |
-
"Embedding Dimension": 1024,
|
12 |
-
"Max Tokens": 512,
|
13 |
-
"Web Search Dataset (MRR)": 0.6526209043734583,
|
14 |
-
"Web Search Dataset (nDCG@k=None)": 0.7165619055124024,
|
15 |
-
"Web Search Dataset (Recall@5)": 0.7414125820146662,
|
16 |
-
"Web Search Dataset (Overall Score)": 0.7035317973001757
|
17 |
-
}
|
18 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
utils.py
CHANGED
@@ -12,7 +12,7 @@ DATASET_REPO_ID = f"{OWNER}/requests-dataset"
|
|
12 |
|
13 |
def load_retrieval_results():
|
14 |
base_path = Path(__file__).parent
|
15 |
-
results_dir = base_path / "
|
16 |
|
17 |
retrieval_dataframe_path = results_dir / "retrieval_results.json"
|
18 |
if not retrieval_dataframe_path.exists():
|
@@ -40,7 +40,7 @@ def fetch_model_information(model_name):
|
|
40 |
if len(supported_precisions) == 0:
|
41 |
supported_precisions = [None]
|
42 |
except Exception as e:
|
43 |
-
gr.Error(f"
|
44 |
return
|
45 |
return gr.update(choices=supported_precisions, value=supported_precisions[0]), num_parameters, license
|
46 |
|
@@ -200,12 +200,6 @@ def submit_gradio_module(task_type):
|
|
200 |
label="Precision",
|
201 |
value="F16"
|
202 |
)
|
203 |
-
params_input = gr.Textbox(
|
204 |
-
label="Params (in Millions)",
|
205 |
-
placeholder="Enter the approximate number of parameters as Integer (e.g., 7, 13, 30, 70 ...)"
|
206 |
-
)
|
207 |
-
|
208 |
-
with gr.Row():
|
209 |
license_input = gr.Textbox(
|
210 |
label="License",
|
211 |
placeholder="Enter the license type (Generic one is 'Open' in case no License is provided)",
|
@@ -217,6 +211,12 @@ def submit_gradio_module(task_type):
|
|
217 |
value="main"
|
218 |
)
|
219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
submit_button = gr.Button("Submit Model", variant="primary")
|
221 |
submission_result = gr.Markdown()
|
222 |
fetch_outputs = [precision_input, params_input, license_input]
|
|
|
12 |
|
13 |
def load_retrieval_results():
|
14 |
base_path = Path(__file__).parent
|
15 |
+
results_dir = base_path / "results"
|
16 |
|
17 |
retrieval_dataframe_path = results_dir / "retrieval_results.json"
|
18 |
if not retrieval_dataframe_path.exists():
|
|
|
40 |
if len(supported_precisions) == 0:
|
41 |
supported_precisions = [None]
|
42 |
except Exception as e:
|
43 |
+
gr.Error(f"Error: Could not fetch model information. {str(e)}")
|
44 |
return
|
45 |
return gr.update(choices=supported_precisions, value=supported_precisions[0]), num_parameters, license
|
46 |
|
|
|
200 |
label="Precision",
|
201 |
value="F16"
|
202 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
license_input = gr.Textbox(
|
204 |
label="License",
|
205 |
placeholder="Enter the license type (Generic one is 'Open' in case no License is provided)",
|
|
|
211 |
value="main"
|
212 |
)
|
213 |
|
214 |
+
with gr.Row():
|
215 |
+
params_input = gr.Textbox(
|
216 |
+
label="Params (in Millions)",
|
217 |
+
placeholder="Enter the approximate number of parameters as Integer (e.g., 7, 13, 30, 70 ...)"
|
218 |
+
)
|
219 |
+
|
220 |
submit_button = gr.Button("Submit Model", variant="primary")
|
221 |
submission_result = gr.Markdown()
|
222 |
fetch_outputs = [precision_input, params_input, license_input]
|