Spaces:
Sleeping
Sleeping
Commit
·
cfd23dd
1
Parent(s):
96fec0d
Update app.py
Browse files
app.py
CHANGED
@@ -376,13 +376,13 @@ def start(_, calibrate_prompts, user_id, request: gr.Request):
|
|
376 |
'./first.mp4',
|
377 |
'./second.mp4',
|
378 |
'./third.mp4',
|
379 |
-
'./fourth.mp4',
|
380 |
-
'./fifth.mp4',
|
381 |
-
'./sixth.mp4',
|
382 |
-
'./seventh.mp4',
|
383 |
-
'./eigth.mp4',
|
384 |
-
'./ninth.mp4',
|
385 |
-
'./tenth.mp4',
|
386 |
]:
|
387 |
tmp_df = pd.DataFrame(columns=['paths', 'embeddings', 'ips', 'user:rating', 'text', 'gemb'])
|
388 |
tmp_df['paths'] = [im]
|
@@ -508,9 +508,9 @@ Explore the latent space without text prompts based on your preferences. Learn m
|
|
508 |
'./first.mp4',
|
509 |
'./second.mp4',
|
510 |
'./third.mp4',
|
511 |
-
'./fourth.mp4',
|
512 |
-
'./fifth.mp4',
|
513 |
-
'./sixth.mp4',
|
514 |
])
|
515 |
def l():
|
516 |
return None
|
@@ -573,7 +573,7 @@ scheduler.start()
|
|
573 |
#thread.start()
|
574 |
|
575 |
# TODO shouldn't call this before gradio launch, yeah?
|
576 |
-
@spaces.GPU(duration=
|
577 |
def encode_space(x, im):
|
578 |
with torch.no_grad():
|
579 |
print('encode')
|
|
|
376 |
'./first.mp4',
|
377 |
'./second.mp4',
|
378 |
'./third.mp4',
|
379 |
+
# './fourth.mp4',
|
380 |
+
# './fifth.mp4',
|
381 |
+
# './sixth.mp4',
|
382 |
+
# './seventh.mp4',
|
383 |
+
# './eigth.mp4',
|
384 |
+
# './ninth.mp4',
|
385 |
+
# './tenth.mp4',
|
386 |
]:
|
387 |
tmp_df = pd.DataFrame(columns=['paths', 'embeddings', 'ips', 'user:rating', 'text', 'gemb'])
|
388 |
tmp_df['paths'] = [im]
|
|
|
508 |
'./first.mp4',
|
509 |
'./second.mp4',
|
510 |
'./third.mp4',
|
511 |
+
# './fourth.mp4',
|
512 |
+
# './fifth.mp4',
|
513 |
+
# './sixth.mp4',
|
514 |
])
|
515 |
def l():
|
516 |
return None
|
|
|
573 |
#thread.start()
|
574 |
|
575 |
# TODO shouldn't call this before gradio launch, yeah?
|
576 |
+
@spaces.GPU(duration=100)
|
577 |
def encode_space(x, im):
|
578 |
with torch.no_grad():
|
579 |
print('encode')
|