Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def get_model_size(model_info: ModelInfo):
|
|
| 45 |
def add_docker_eval(zip_file):
|
| 46 |
new_fid_list = zip_file.split("/")
|
| 47 |
new_fid = new_fid_list[-1]
|
| 48 |
-
if new_fid.
|
| 49 |
API.upload_file(
|
| 50 |
path_or_fileobj=zip_file ,
|
| 51 |
repo_id="EnergyStarAI/tested_proprietary_models",
|
|
|
|
| 45 |
def add_docker_eval(zip_file):
|
| 46 |
new_fid_list = zip_file.split("/")
|
| 47 |
new_fid = new_fid_list[-1]
|
| 48 |
+
if new_fid.endswith('.zip'):
|
| 49 |
API.upload_file(
|
| 50 |
path_or_fileobj=zip_file ,
|
| 51 |
repo_id="EnergyStarAI/tested_proprietary_models",
|