Spaces:
Runtime error
Runtime error
Yeyitogpu
commited on
Commit
•
b4d145e
1
Parent(s):
56589b2
fixed tuple oversight
Browse files
app.py
CHANGED
@@ -39,6 +39,7 @@ def restart_space(): #Most dumbest update function to ever exist, I'm sobbing in
|
|
39 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
40 |
|
41 |
def formatr(result):
|
|
|
42 |
result = result.split(",")[2].replace(")","")
|
43 |
result = result.replace(" ","")
|
44 |
return result
|
@@ -83,8 +84,8 @@ def worker_thread():
|
|
83 |
global modelQueue, server
|
84 |
while True:
|
85 |
for submission in modelQueue:
|
86 |
-
|
87 |
-
|
88 |
|
89 |
# Uncomment those lines in order to begin testing, I test these models outside of this space and later commit the results back.
|
90 |
# I highly encourage you to try to reproduce the results I get using your own implementation.
|
|
|
39 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
40 |
|
41 |
def formatr(result):
|
42 |
+
result = str(result)
|
43 |
result = result.split(",")[2].replace(")","")
|
44 |
result = result.replace(" ","")
|
45 |
return result
|
|
|
84 |
global modelQueue, server
|
85 |
while True:
|
86 |
for submission in modelQueue:
|
87 |
+
evaluate(submission[0],submission[1].split(" ")[0])
|
88 |
+
modelQueue.pop(modelQueue.index(submission))
|
89 |
|
90 |
# Uncomment those lines in order to begin testing, I test these models outside of this space and later commit the results back.
|
91 |
# I highly encourage you to try to reproduce the results I get using your own implementation.
|