Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -402,6 +402,7 @@ def downvote_model(model, uname):
|
|
| 402 |
cursor.close()
|
| 403 |
|
| 404 |
def a_is_better(model1, model2, userid):
|
|
|
|
| 405 |
userid = mkuuid(userid)
|
| 406 |
if model1 and model2:
|
| 407 |
conn = get_db()
|
|
@@ -414,6 +415,7 @@ def a_is_better(model1, model2, userid):
|
|
| 414 |
downvote_model(model2, str(userid))
|
| 415 |
return reload(model1, model2, userid, chose_a=True)
|
| 416 |
def b_is_better(model1, model2, userid):
|
|
|
|
| 417 |
userid = mkuuid(userid)
|
| 418 |
if model1 and model2:
|
| 419 |
conn = get_db()
|
|
|
|
| 402 |
cursor.close()
|
| 403 |
|
| 404 |
def a_is_better(model1, model2, userid):
|
| 405 |
+
print("A is better", model1, model2)
|
| 406 |
userid = mkuuid(userid)
|
| 407 |
if model1 and model2:
|
| 408 |
conn = get_db()
|
|
|
|
| 415 |
downvote_model(model2, str(userid))
|
| 416 |
return reload(model1, model2, userid, chose_a=True)
|
| 417 |
def b_is_better(model1, model2, userid):
|
| 418 |
+
print("B is better", model1, model2)
|
| 419 |
userid = mkuuid(userid)
|
| 420 |
if model1 and model2:
|
| 421 |
conn = get_db()
|