rynmurdock commited on
Commit
340a151
·
1 Parent(s): 47b6763

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -377,12 +377,12 @@ def start(_, calibrate_prompts, user_id, request: gr.Request):
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]
@@ -502,8 +502,8 @@ Explore the latent space without text prompts based on your preferences. Learn m
502
  './second.mp4',
503
  './third.mp4',
504
  './fourth.mp4',
505
- './fifth.mp4',
506
- './sixth.mp4',
507
  ])
508
  def l():
509
  return None
@@ -566,7 +566,7 @@ scheduler.start()
566
  #thread.start()
567
 
568
  # TODO shouldn't call this before gradio launch, yeah?
569
- @spaces.GPU()
570
  def encode_space(x):
571
  im_emb, _ = pipe.encode_image(
572
  x, DEVICE, 1, output_hidden_state
 
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]
 
502
  './second.mp4',
503
  './third.mp4',
504
  './fourth.mp4',
505
+ # './fifth.mp4',
506
+ # './sixth.mp4',
507
  ])
508
  def l():
509
  return None
 
566
  #thread.start()
567
 
568
  # TODO shouldn't call this before gradio launch, yeah?
569
+ @spaces.GPU(duration=20)
570
  def encode_space(x):
571
  im_emb, _ = pipe.encode_image(
572
  x, DEVICE, 1, output_hidden_state