Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Attila Simkó
commited on
Commit
·
153b0d3
1
Parent(s):
65c0c7c
new stuff?
Browse files- .gitignore +3 -1
- app.py +0 -1
- config/__pycache__/constants.cpython-312.pyc +0 -0
- core/__pycache__/conversion.cpython-312.pyc +0 -0
- core/__pycache__/paper.cpython-312.pyc +0 -0
- core/paper.py +6 -6
- evaluations/__pycache__/documentation.cpython-310.pyc +0 -0
- evaluations/__pycache__/license.cpython-310.pyc +0 -0
- evaluations/__pycache__/repo_evaluations.cpython-310.pyc +0 -0
- evaluations/__pycache__/requirements.cpython-310.pyc +0 -0
- evaluations/__pycache__/training.cpython-310.pyc +0 -0
- evaluations/__pycache__/utils.cpython-310.pyc +0 -0
- evaluations/__pycache__/validating.cpython-310.pyc +0 -0
- evaluations/__pycache__/weights.cpython-310.pyc +0 -0
.gitignore
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
data/
|
2 |
*.env
|
3 |
.env
|
4 |
-
evaluations/__pycache__/*
|
|
|
|
|
|
1 |
data/
|
2 |
*.env
|
3 |
.env
|
4 |
+
evaluations/__pycache__/*
|
5 |
+
*.pyc
|
6 |
+
.pyc
|
app.py
CHANGED
@@ -18,7 +18,6 @@ repo_link = st.text_input("Github repository link:", value="", type="default", h
|
|
18 |
if (repo_link):
|
19 |
verbose = 4 if checkbox else 3
|
20 |
paper = Paper.from_url(repo_link, verbose=verbose)
|
21 |
-
st.write(paper)
|
22 |
fetch_repo(paper.main_repo_url, paper.zip_path, os.getenv("githubToken"))
|
23 |
evaluate(model, paper, paper.log)
|
24 |
|
|
|
18 |
if (repo_link):
|
19 |
verbose = 4 if checkbox else 3
|
20 |
paper = Paper.from_url(repo_link, verbose=verbose)
|
|
|
21 |
fetch_repo(paper.main_repo_url, paper.zip_path, os.getenv("githubToken"))
|
22 |
evaluate(model, paper, paper.log)
|
23 |
|
config/__pycache__/constants.cpython-312.pyc
DELETED
Binary file (684 Bytes)
|
|
core/__pycache__/conversion.cpython-312.pyc
DELETED
Binary file (10.1 kB)
|
|
core/__pycache__/paper.cpython-312.pyc
DELETED
Binary file (8.64 kB)
|
|
core/paper.py
CHANGED
@@ -124,19 +124,19 @@ class Paper:
|
|
124 |
show = st.write
|
125 |
|
126 |
# Align line-break
|
127 |
-
if (
|
128 |
show("\n")
|
129 |
-
|
130 |
|
131 |
# Only show tips in verbose mode 2 and 4
|
132 |
if ((level == "TITLE") & show_tips):
|
133 |
-
show(f"\n#### {
|
134 |
if ((level == "TIP") & show_tips):
|
135 |
-
show(f"*{
|
136 |
if ((level == "LOG") & show_tips):
|
137 |
-
show(f"{
|
138 |
if ((level == "ERROR")):
|
139 |
-
show(f"**{
|
140 |
|
141 |
if ((level != "TIP") & (level != "LOG") & (level != "ERROR") & (level != "TITLE")):
|
142 |
raise ValueError("Invalid log type. Use 'TIP', 'LOG', 'TITLE' or 'ERROR'.")
|
|
|
124 |
show = st.write
|
125 |
|
126 |
# Align line-break
|
127 |
+
if (message.startswith("\n")):
|
128 |
show("\n")
|
129 |
+
message = message.lstrip('\n')
|
130 |
|
131 |
# Only show tips in verbose mode 2 and 4
|
132 |
if ((level == "TITLE") & show_tips):
|
133 |
+
show(f"\n#### {message}")
|
134 |
if ((level == "TIP") & show_tips):
|
135 |
+
show(f"*{message}*")
|
136 |
if ((level == "LOG") & show_tips):
|
137 |
+
show(f"{message}")
|
138 |
if ((level == "ERROR")):
|
139 |
+
show(f"**{message}**")
|
140 |
|
141 |
if ((level != "TIP") & (level != "LOG") & (level != "ERROR") & (level != "TITLE")):
|
142 |
raise ValueError("Invalid log type. Use 'TIP', 'LOG', 'TITLE' or 'ERROR'.")
|
evaluations/__pycache__/documentation.cpython-310.pyc
DELETED
Binary file (3.11 kB)
|
|
evaluations/__pycache__/license.cpython-310.pyc
DELETED
Binary file (1.27 kB)
|
|
evaluations/__pycache__/repo_evaluations.cpython-310.pyc
DELETED
Binary file (4.71 kB)
|
|
evaluations/__pycache__/requirements.cpython-310.pyc
DELETED
Binary file (1.56 kB)
|
|
evaluations/__pycache__/training.cpython-310.pyc
DELETED
Binary file (1.17 kB)
|
|
evaluations/__pycache__/utils.cpython-310.pyc
DELETED
Binary file (4.01 kB)
|
|
evaluations/__pycache__/validating.cpython-310.pyc
DELETED
Binary file (1.23 kB)
|
|
evaluations/__pycache__/weights.cpython-310.pyc
DELETED
Binary file (2.41 kB)
|
|