attilasimko commited on
Commit
454cd9e
1 Parent(s): 82dc28f

Loader changes

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. 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
- zipfile = zipfile.ZipFile(path)
12
- for file_name in zipfile.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 = zipfile.open(file_name).read().decode("utf-8")
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