Spaces:
Runtime error
Runtime error
Commit
·
7b3b160
1
Parent(s):
9b77130
basically delirious lol
Browse files
app.py
CHANGED
|
@@ -321,11 +321,8 @@ def next_image(calibrate_prompts, user_id):
|
|
| 321 |
|
| 322 |
|
| 323 |
def start(_, calibrate_prompts, user_id, request: gr.Request):
|
| 324 |
-
global is_started
|
| 325 |
user_id = int(str(time.time())[-7:].replace('.', ''))
|
| 326 |
image, calibrate_prompts = next_image(calibrate_prompts, user_id)
|
| 327 |
-
if not is_started:
|
| 328 |
-
background_next_image()
|
| 329 |
return [
|
| 330 |
gr.Button(value='Like (L)', interactive=True),
|
| 331 |
gr.Button(value='Neither (Space)', interactive=True, visible=False),
|
|
|
|
| 321 |
|
| 322 |
|
| 323 |
def start(_, calibrate_prompts, user_id, request: gr.Request):
|
|
|
|
| 324 |
user_id = int(str(time.time())[-7:].replace('.', ''))
|
| 325 |
image, calibrate_prompts = next_image(calibrate_prompts, user_id)
|
|
|
|
|
|
|
| 326 |
return [
|
| 327 |
gr.Button(value='Like (L)', interactive=True),
|
| 328 |
gr.Button(value='Neither (Space)', interactive=True, visible=False),
|