Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
路
454cd9e
1
Parent(s):
82dc28f
Loader changes
Browse files- app.py +1 -0
- evaluations/utils.py +3 -3
app.py
CHANGED
@@ -8,6 +8,7 @@ model = RemoteLLM("meta-llama/Llama-3.1-8B-Instruct")
|
|
8 |
st.write("\n")
|
9 |
st.write("Welcome to the online reproducibility evaluation tool!")
|
10 |
st.write("We follow guidelines provided by Simk贸 et al. (2022) (https://arxiv.org/abs/2210.11146)")
|
|
|
11 |
|
12 |
checkbox = st.checkbox("Would you like to see recommendations during evaluation?", value=False)
|
13 |
repo_link = st.text_input("Github repository link:", value="", type="default", help=None)
|
|
|
8 |
st.write("\n")
|
9 |
st.write("Welcome to the online reproducibility evaluation tool!")
|
10 |
st.write("We follow guidelines provided by Simk贸 et al. (2022) (https://arxiv.org/abs/2210.11146)")
|
11 |
+
st.write("Additionally we look for common pitfalls in the code according to a publication in development.")
|
12 |
|
13 |
checkbox = st.checkbox("Would you like to see recommendations during evaluation?", value=False)
|
14 |
repo_link = st.text_input("Github repository link:", value="", type="default", help=None)
|
evaluations/utils.py
CHANGED
@@ -8,10 +8,10 @@ import streamlit as st
|
|
8 |
|
9 |
def fetch_code(path):
|
10 |
zip_content_dict = {}
|
11 |
-
|
12 |
-
for file_name in
|
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 =
|
15 |
zip_content_dict[file_name] = file_content
|
16 |
return zip_content_dict
|
17 |
|
|
|
8 |
|
9 |
def fetch_code(path):
|
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")
|
15 |
zip_content_dict[file_name] = file_content
|
16 |
return zip_content_dict
|
17 |
|