Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
1373b5f
1
Parent(s):
454cd9e
oops
Browse files- evaluations/utils.py +1 -2
evaluations/utils.py
CHANGED
@@ -6,9 +6,8 @@ import zipfile
|
|
6 |
import json
|
7 |
import streamlit as st
|
8 |
|
9 |
-
def fetch_code(
|
10 |
zip_content_dict = {}
|
11 |
-
zip_file = zipfile.ZipFile(path)
|
12 |
for file_name in zip_file.namelist():
|
13 |
if ((file_name.lower().endswith(".py") | (file_name.lower().endswith(".ipynb")) | (file_name.lower().endswith(".md")) | (file_name.lower().endswith(".txt")))):
|
14 |
file_content = zip_file.open(file_name).read().decode("utf-8")
|
|
|
6 |
import json
|
7 |
import streamlit as st
|
8 |
|
9 |
+
def fetch_code(zip_file):
|
10 |
zip_content_dict = {}
|
|
|
11 |
for file_name in zip_file.namelist():
|
12 |
if ((file_name.lower().endswith(".py") | (file_name.lower().endswith(".ipynb")) | (file_name.lower().endswith(".md")) | (file_name.lower().endswith(".txt")))):
|
13 |
file_content = zip_file.open(file_name).read().decode("utf-8")
|